praetorian-fabric
Gladiator Titus in your service. I like heavy weights 🏋️. More strength, more praetorian, more fabric. What more do you want? Gimme that heavy variables 💪.
Introduction
Praetorian Fabric library extends standard fabric library, to maintain communication
with praetorian services. Main purpose is to make necessary connections and provide
suitable data.
Installation
# pip
pip install praetorian-fabric
# pipenv
pipenv install praetorian-fabric
# poetry
poetry add praetorian-fabric
Usage
####1. First you need to create environment variables:
PRAETORIAN_API_URLPRAETORIAN_API_KEYPRAETORIAN_API_SECRETPRAETORIAN_USERNAMEPRAETORIAN_PASSWORD
####2. Create fabfile.py folder in your project root directory
####3. Instantiate PraetorianConfig object:
praetorian_config = PraetorianConfig(project_name='foo project')
####4. Create task and connect to Praetorian SSH Proxy to gain needed variables:
@task
def deploy(ctx, remote_name):
ctx = praetorian_config.connect(ctx, remote_name)
####5. Get variables by dot notation anywhere in your tasks:
@task
def deploy(ctx, remote_name):
ctx = praetorian_config.connect(ctx, remote_name)
variable = praetorian_config.get_variable('variable_name')
nested_variable = praetorian_config.get_variable('variables.nested_variable.name')
Developed with 💙 and ☕️ by Adam Žúrek with the support of BACKBONE s.r.o., 2021 (C)
0.1.0 : 2021-08-05
- 💪 Initial release
0.1.1 : 2021-09-05
- ✌️ Removed useless service calling.
0.1.2 : 2021-10-05
- 👍 Fixed get_variable method, when variable path does not exist.
Metadata
Release files for praetorian-fabric 0.1.2
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 |
|---|---|---|---|---|
| praetorian-fabric-0.1.2.tar.gz | 4.2 kB | Without provenance | Details for praetorian-fabric-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| praetorian_fabric-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for praetorian_fabric-0.1.2-py3-none-any.whl |
Total release size: 8.5 kB
Release files / praetorian-fabric-0.1.2.tar.gz
| Download URL | praetorian-fabric-0.1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12c96ce7c880edcecc7bb4d94bd93af4ccc786f00f8837ad501b8aa08368cde8
|
|
BLAKE2b-256 checksum How to use checksums |
d5b95d0e21cb22dca54db8578ba15a9615dc7e7c7e4509273f4b429a873bb3a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Release files / praetorian_fabric-0.1.2-py3-none-any.whl
| Download URL | praetorian_fabric-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55e16b4e97cb657ca2ff57e02b579cd09e6466ea59be523cdee9ed346b7fa928
|
|
BLAKE2b-256 checksum How to use checksums |
8368490390859d8858145c11baa2d1c1c36bf89ec2ad213bb27353ffdc3024a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Security for praetorian-fabric 0.1.2
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.