NCTL
Fuses ngrok and CloudFront offering a fully automated solution
Platform Supported
Deployments
Kick off
Recommendations
- Install
python3.10 or 3.11 - Use a dedicated virtual environment
Install nctl
python -m pip install nctl
Initiate - IDE
import nctl
if __name__ == '__main__':
nctl.tunnel()
Initiate - CLI
nctl start
Use
nctl --helpfor usage instructions.
Environment Variables
Sourcing environment variables from an env file
By default,
nctlwill look for a.envfile in the current working directory.
-
PORT - Port number to expose using ngrok.
-
HOST - Hostname of the server that has to be exposed.
-
NGROK_AUTH - Auth token for ngrok.
-
NGROK_CONFIG - Ngrok configuration filepath. Auto-created when auth token is specified.
-
AWS_PROFILE_NAME - AWS profile name.
-
AWS_ACCESS_KEY_ID - AWS access key ID.
-
AWS_SECRET_ACCESS_KEY - AWS secret key.
-
AWS_REGION_NAME - AWS region name.
-
DISTRIBUTION_ID - Cloudfront distribution ID. Required to update an existing distribution.
-
DISTRIBUTION_CONFIG - Cloudfront distribution config filepath. Required to create a new distribution.
-
DEBUG - Boolean flag to enable debug level logging.
-
LOG - Simple option to switch between
stdoutandfilelogging. -
LOG_CONFIG - Custom logging configuration. Accepts
.yaml,.jsonand.inifiletypes.
Coding Standards
Docstring format: Google
Styling conventions: PEP 8 and isort
Release Notes
Requirement
python -m pip install gitverse
Usage
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
Linting
pre-commit will ensure linting, run pytest, generate runbook & release notes, and validate hyperlinks in ALL
markdown files (including Wiki pages)
Requirement
python -m pip install sphinx==5.1.1 pre-commit recommonmark
Usage
pre-commit run --all-files
Pypi Package
https://pypi.org/project/nctl/
Runbook
https://thevickypedia.github.io/nctl/
License & copyright
© Vignesh Rao
Licensed under the MIT License
Metadata
Release files for nctl 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nctl-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for nctl-0.0.1-py3-none-any.whl |
Release files / nctl-0.0.1-py3-none-any.whl
| Download URL | nctl-0.0.1-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e81306e731acdcbbf6cfadf521c83186decfa932156afc3d8d82e031c44eb08c
|
|
BLAKE2b-256 checksum How to use checksums |
3c1df3fa8755a03b98d72c91d933900621a5ba23fe5e2f65adbe55db8575defb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for nctl 0.0.1
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.