Open-source package for loading environment variables easier and in a Pythonic way
Project description
CaptainPlanet 🌍
Open-source package for loading environment variables easier and in a Pythonic way
Getting Started
TBD (Pending https://github.com/bryanterichardson/python-environment-variable/issues/2)
Development
[!IMPORTANT] We
uvfor development, from environment setup to test and build/deploy.See official
uvdocumentation for more information.
Initial setup
If it's your first time working on this project, you can run the following command to set up your environment:
make init
[!TIP] We also provide a number of other
maketargets for convenience. Runmake(ormake help) to see what's available.
Code format
We use ruff for code formatting and linting. You can run the following command to check your code.
A simple way to lint your code is to run the pre-commit hooks using the format target:
make format
Unit tests
We use pytest for unit tests, and all tests are in the tests directory.
To quickly run unit tests using the development environment, you can run
make test
To make sure that the package works as expected in all supported python versions, you can run the test-all target.
Note that each python version will be tested in an isolated environment, and you can use the -j, --jobs option to run tests in parallel
(each python version in its own process). For example:
make -j5 test-all
[!TIP] For the
test-alltarget, bothstdoutandstderrfrom testing eachpythonversion are written to respective.test-{version}.logfiles.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file captainplanet-0.0.1.tar.gz.
File metadata
- Download URL: captainplanet-0.0.1.tar.gz
- Upload date:
- Size: 40.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4476e116e0c12fe5cd39f317dc107780f9fb29aa18e1357b70ac6815c9f2055c
|
|
| MD5 |
685c82d5ae2dd998833cda0acaf15db4
|
|
| BLAKE2b-256 |
c6e3bf69c19276f256eaf088382e7365b58f2901933139f232ea817c5b011b59
|
File details
Details for the file captainplanet-0.0.1-py3-none-any.whl.
File metadata
- Download URL: captainplanet-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06325a913ee06db68c2e97bc6e2fa06a51cda19ef4b2b29ddf2cf5ced0171121
|
|
| MD5 |
391efb46632333d1cb82125d72194319
|
|
| BLAKE2b-256 |
46be7b0f7e8ddd1a6f6547c1d67f4ac474365292208f87663fcc3f919f75bbcf
|