Skip to main content

Edgegap CLI

This is the README for the Edgegap CLI, which is part of the Edgegap suite of helpers. This library provides a UI CLI to interact with multiple entity.

Table of Contents

Overview

The Edgegap CLI includes various tools and helpers for helping with Scheduling Task. It is designed for use within the Edgegap organization.

Installation

To install this library, ensure you have Python and poetry installed. Then, use the following command:

poetry add edgegap-scheduling

Ensure you have the necessary permissions to install and use this library, as it is intended for Edgegap employees only.

Usage

Please consult Obsidian Documentation for Usage

Seeder

The db feature have the option to seed data in any postgresql database

you can invoke it with the CLI like this

# Not safe since it will write the pass in the history
edgegap-cli db seed --uri 'postgresql://<user>:<pass>@<localhost>:<port>/<db>' --folder /path/to/json/folder

# or, using stdin and setting the URI into a variable or env variable
echo "$POSTGRES_URI" | edgegap-cli db seed --uri 'stdin' --folder /path/to/json/folder

This will scan 2 folders of depth into the /path/to/json/folder and will try to load all json file into the

SeederModel (pydantic load), any bad file or data will be discarded but the script will run all valid one

You can inspect the SeederModel.schema() to see the documentation for the fields

All SeederElement are wrapped in a database transaction and any failure of a sub-elements will result in a rollback of the parent/child in creation. The script won't exit completely in such case but rather skip the Element and seed the rest of the Seeds/Elements

Running Tests

To run tests for this library, you need to have pytest installed. You can install dev dependencies with:

poetry install --with=dev

then run

pytest

This will execute all the tests in the tests folder.

Uploading Package

To upload the distribution to pypi, you will need an API token from Pypi

poetry config pypi-token.pypi <your-api-token>
poetry version x.x.x
poetry publish --build

Contributing

If you'd like to contribute to this library and you're an Edgegap employee, please follow these steps:

  • Fork the repository.
  • Create a new branch for your changes (e.g., feature/my-feature).
  • Commit your changes with a clear message.
  • Push your branch to your fork.
  • Open a Pull Request, explaining the changes and providing any necessary context.

License

This software is proprietary to Edgegap. Only current Edgegap employees are allowed to use this library. Refer to the LICENSE file for detailed licensing information.

Contact

For support or questions related to this library, please contact support@edgegap.com.

Acknowledgements

Thanks to the Edgegap development team for creating and maintaining this library.

Metadata

Release files for edgegap-cli 1.10.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edgegap-cli 1.10.13
File Size Uploaded Provenance Actions
edgegap_cli-1.10.13.tar.gz 13.2 kB Without provenance Details for edgegap_cli-1.10.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edgegap-cli 1.10.13
File Interpreter ABI Platform Actions
edgegap_cli-1.10.13-py3-none-any.whl Python 3 none any Details for edgegap_cli-1.10.13-py3-none-any.whl

Total release size: 35.4 kB

Release files / edgegap_cli-1.10.13.tar.gz

Download URL edgegap_cli-1.10.13.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
90949be8137cb57a7c7c44fab7c71df60b2ca3586e58b80a76079965c6e9708e
BLAKE2b-256 checksum
How to use checksums
64d61ebed510ee2cb3bd81cc97f1234a3fb7f4e68c19933e6adbfa2ab0d41c0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.1.79

Release files / edgegap_cli-1.10.13-py3-none-any.whl

Download URL edgegap_cli-1.10.13-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efd4cc7d9a2aa44ed8417912d30109866ce8ed05d1f6c323a8b6f73629281ee8
BLAKE2b-256 checksum
How to use checksums
3f1cb3378b7aec7761f4d79bd6dc3e0f5c1dbad05ac16c1402902dd8d36e6c35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.1.79

Security for edgegap-cli 1.10.13

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.

Release history Release notifications | RSS feed

This release

1.10.13 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page