Skip to main content

Manage (read/ write) settings file in different formats (eg. JAML, JSON, ...)

Project description

settings

GitHub license Author Version Language Python sys.platform supported On GitHub

Description

Manage (read/ write) settings file in different formats (eg. JAML, JSON, ...)

Suppeorted standards

  • json
  • yaml/ yml

Required

  • python3
  • pip

Directories structure

  • .github
    • ISSUE_TEMPLATE
      • bug_report.md
      • feature-request.md
    • workflows
      • pypi-on-push.yml
      • pypi-on-release.yml
      • python-test.yml
  • settings
    • __init__.py
    • test-settings.py
  • docs
    • LICENSE
    • README.md
  • log
    • trace.log
  • requirements
    • requirements.txt
  • .gitignore
  • setup.py

Execution examples

# Import
from settings import settings

# Inizialize
mysettings = settings(file, format) # file = file path; format = one of "json", "yml", "yaml" (default "yaml")

# Read
mysettings.read()

# Write
mysettings.write(a_dictionary_with_your_settings)

Changelog

Version_01.03_2021-03-07

  • Added a needed requirements

Version_01.02_2021-02-22

  • Fixed a minor bug

Version_01.01_2021-02-22

  • Initial version

Made by Castellani Davide If you have any problem please contact me:

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

settings_read_write-1.3.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

settings_read_write-1.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

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