Skip to main content

CLI tool for elog management

Project description

elog-cli

Environment Variables

The following environment variables need to be set for the authentication manager to work:

  • CODE_FLOW_SERVER_URL: The URL of the OAuth2 code flow server (e.g., https://<hostname>/device/code).
  • TOKEN_URL: The URL to obtain the token (e.g., https://<hostname>/token).
  • CLIENT_ID: The client ID for OAuth2 authentication.
  • CLIENT_SECRET: The client secret for OAuth2 authentication.
  • ENPOINT_URL: The base URL for the elog management backend client.

Development

To set up the development environment, follow these steps:

  1. Download the mock user authentication data:

    wget http://elog:8080/v1/mock/users-auth -O user.json
    
  2. Generate the Python client from the OpenAPI specification:

    ~/.local/bin/openapi-python-client generate --url http://elog:8080/api-docs --output-path elog_management_backend_client --overwrite
    
  3. Ensure all required environment variables are set:

    export ENPOINT_URL="http://elog:8080"
    
  4. Run the application:

    python main.py login --login-type token
    

    and past one of the token found on the above downloaded user.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elog_cli-0.1.15.tar.gz (49.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elog_cli-0.1.15-py3-none-any.whl (170.6 kB view details)

Uploaded Python 3

File details

Details for the file elog_cli-0.1.15.tar.gz.

File metadata

  • Download URL: elog_cli-0.1.15.tar.gz
  • Upload date:
  • Size: 49.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for elog_cli-0.1.15.tar.gz
Algorithm Hash digest
SHA256 bb6474d1e7bf4d2e7e30f73bd0b4b63127cb9093fa9d7641115f5cd0f5179a4d
MD5 14a20c5e12e8b0e4b028ebb425f19293
BLAKE2b-256 280fa1276365bb4425eb4c407047854e25b93d8e9f925e91864012dabc9c1d7f

See more details on using hashes here.

File details

Details for the file elog_cli-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: elog_cli-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 170.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for elog_cli-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 699c5577de8e5f06f1b79d1619f133781434c1bdec3c4bee9f530e495d161da0
MD5 b8b954b2e5598050bbde603e68c3c32e
BLAKE2b-256 b5d4c966a1e3be70e9d5e2271211ba6ea6ab084d9fa3f22db71829f8f01e9bf0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page