dude CLI
Installation and Setup
pipx install nubium-dude
Further setup
In order to use dude, you will need to set a few things up.
Environment Variables and Configuration
dude can largely be configured via a config.env file, an example of which
can be found at ./dude/config.env (which is also used by default if one not provided. It
will basically set any possible working defaults). Simply set the path of:
DUDE_CONFIG_DOTENV
Additionally, you'll likely need to set, at minimum:
DUDE_CREDENTIALS_DOTENV={path to a .env with various credentials}
NOTE: this will likely change in the future and secrets will be downloaded by default for you.
Lastly, there are (new) variables related to nubium-utils; these can just go in your dude creds.env file:
RHOSAK_USERNAME=(same as preprod)
RHOSAK_PASSWORD=(same as preprod)
TEST_CLUSTER=(ask Tim)
Usage
examples of common tasks
-
Create topics:
dude topics create topic_a,topic_b -
Build requirements.txt:
(in app root folder):
dude app build_reqs -
Run app:
(in app root folder):
dude app run
Known limitations:
-
Currently, no proper error handling if topics already exist (create) or are missing (delete); you will need to validate whether your topics exist else it will fail.
-
Test coverage is almost non-existent.
Development
There's two ways to develop:
option 1
if you only need to make changes to dude, the easiest thing to do is just install an
editable version of the library:
pipx install -e /PATH/TO/DUDE/REPO
option 2
Another option more suitable for coordinating changes that involve multiple nubium libraries is instead making a new venv, sourcing it, and then:
pip install -e /PATH/TO/DUDE/REPO
then you can install -e versions of all the nubium-{} packages. You'll of course need to
source this environment when you test.
once we finish adding more tests...
Run tests via
pipx install tox
tox && tox -e cov
Metadata
Release files for nubium-dude 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nubium-dude-1.0.7.tar.gz | 11.6 kB | Without provenance | Details for nubium-dude-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nubium_dude-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for nubium_dude-1.0.7-py3-none-any.whl |
Total release size: 23.7 kB
Release files / nubium-dude-1.0.7.tar.gz
| Download URL | nubium-dude-1.0.7.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27f7ef2a7e55ea245c7754c21c556489e60aad1cc863e3ba07efe9c7b49ecd57
|
|
BLAKE2b-256 checksum How to use checksums |
8d037ea7af5f3a83f0269453ebfd99bc41ae92935be05e8961a2ebafb9d95113
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.6
|
Release files / nubium_dude-1.0.7-py3-none-any.whl
| Download URL | nubium_dude-1.0.7-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4559a13400e0206efcf6709acc017b026fe4472aa8d575789f9d10b5a8a4965a
|
|
BLAKE2b-256 checksum How to use checksums |
ec8f0304896d528992d6e65d58c98b35a58c3525eb4d659854ba9047ccb7ed58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.6
|
Security for nubium-dude 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.