instruct-br / nameko-reloader Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Ok, here are some items to complete in order to publish the package.
Since this is a library, add the .lock
file to .gitinore.
From Poetry docs:
For libraries it is not necessary to commit the lock file.
https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
Here is another source about when you should keep lockfiles in (or out) of version control:
https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
Translate the docstrings and comments at ~/nameko_reloader/nameko_reloader.py
to english.
The README in this repository will be available as the "Project description" at PyPI website. Translate it to english and add a minimal documentation:
See nameko-vault
:
Copy the workflow from here:
https://github.com/instruct-br/nameko-vault/blob/master/.github/workflows/ci.yml
Replace master
with main
:
nameko-reloader/.github/workflows/ci.yml
Line 26 in 234b5a2
Currently, the reloader only watches changes in the service
file.
This issue aims to improve the "watcher" and make it monitor changes in other files used by service
too.
Hello! Thanks for the great tool!
I've tried to replace the use of nameko_reloader, instead of nameko cli, to reload my scripts.
However, when I have a config.yml like this, with environment variables, will not work:
# config.yml
AMQP_URI: pyamqp://${RABBITMQ_USER:guest}:${RABBITMQ_PASSWORD:password}@${RABBITMQ_HOST:localhost}
An error like this would be throwed:
[...]
File "/usr/lib/python3.8/urllib/parse.py", line 174, in port
raise ValueError(message) from None
ValueError: Port could not be cast to integer value as 'localhost}:${RABBIT_PORT:5672}'
The nameko cli uses regex to substitute environment variables. Is there a way this can be supported?
Thanks!
Nameko-reloader currently only watches files passed as argument on startup.
There are cases when the service
it's a folder, with a __init__
file with multiple imports. In these cases, the script needs to detect these files and monitoring changes in them too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.