Skip to main content

rapydmain is framework for python batch script.

Project description

rapydmain is framework for python batch script.

Features

  • Automatically load config(JSON format).
  • Output message when changed rapydmain status(e.g. script began, script ended, error occued).
  • Automatically setup logger(use python logging).

Usage

  1. Setup project directories & files, like pj_template(https://github.com/aznuii/rapydmain/tree/main/pj_template).
[pj_dir]/
    config/
        fw.json
        loggin.json
        [any config file]
    log/
        [any log file]
  1. Setup python script.
pip install rapydmain
  1. Coding python script. Use by "with" statement.
with rapydmain(Path(__file__).parent.parent) as main:
    # load config
    value = main.config['any1']['any2']

    # logging
    main.logger.info('log')

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

rapydmain-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file rapydmain-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rapydmain-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for rapydmain-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01e6f9b423eeb735a64b110f6c1ceebd5477600d3a9498aeeb1578b0e057e4c6
MD5 00622bc576e49508667ba030a7e933e8
BLAKE2b-256 a66984f3bd2a15bc78bf4e2794951148b7382e9ccc228bbc381e9470092af64f

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