Noos Energy Request Toolkit
This is a simple, yet useful toolkit that supports you in writing Python clients to microservices-style apps.
Installation
Package available from the PyPi repository:
pip install noos-pyk
Usage as a library
The project currently houses a boilerplate to build Python HTTP and WebSocket clients to web services.
As an example, to implement a Python client wrapping up HashiCorp's Terraform Cloud API,
# Import the namespace within your project
from noos_pyk.clients import auth, json
# Define a bearer token authentication class
class TerraformAuth(auth.HTTPTokenAuth):
default_header = "Authorization"
default_value = "Bearer"
# Wireup all components for a JSON REST client
class TerraformClient(json.JSONClient, auth.AuthClient):
default_base_url = "https://app.terraform.io/api/"
default_content_type = "application/vnd.api+json"
default_auth_class = TerraformAuth
Development
Make sure uv has been installed and pre-configured, then run the following command to install the project dependencies:
~$ uv sync --dev
This project is shipped with a Makefile, which is ready to do basic common tasks.
~$ make
help Display this auto-generated help message
update Lock and install build dependencies
clean Clean project from temp files / dirs
format Run auto-formatting linters
install Install build dependencies from lock file
lint Run python linters
test Run pytest with all tests
package Build project wheel distribution
release Publish wheel distribution to PyPi
Metadata
Release files for noos-pyk 0.2.0
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 |
|---|---|---|---|---|
| noos_pyk-0.2.0.tar.gz | 5.4 kB | Without provenance | Details for noos_pyk-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| noos_pyk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for noos_pyk-0.2.0-py3-none-any.whl |
Total release size: 12.6 kB
Release files / noos_pyk-0.2.0.tar.gz
| Download URL | noos_pyk-0.2.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12149676261664527f5640a52283e315e49160e58c3f67428f345ad7e08830ec
|
|
BLAKE2b-256 checksum How to use checksums |
ba5f0569a17464e1a4de006ebaa8efa637bc0415b4af70ff564f36534b4fe403
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / noos_pyk-0.2.0-py3-none-any.whl
| Download URL | noos_pyk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5e0bf3a97f71029f91848c876dca7fad78983b75461eaaf81f9553ada3d27a7
|
|
BLAKE2b-256 checksum How to use checksums |
788cc3fdbf07c15a49d411749e070fefdba2f5403e99e338c30ddfedcd508b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for noos-pyk 0.2.0
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.