Skip to main content

Define easy to use and user friendly settings for your programs

Project description

sema

sema is a setting maker that lets user change the setting safely and with lots of information about what can be done.

What is sema

I have faced many setting files that all the available options for a setting or meaning of changes are hard to find or the only way to understand the options is through indirect sites. the other issue is the certainty that am i doing the changes the right way or will i break the system with the wrong syntax? In essence settings are painful to deal with, but i am tring to make it easier through giving user a program to alter settings with and shippng informations about settings with the setting it self in a seprate file, so user has some suggestions and informations about what can be done.

Future of sema

This is just a beta version, there are futures that are not done yet like: support for multivalues for an option and much more, and there are bugs and also possibility of revisions.

So basiclly there is much to be done, at this phase i just want people to see the idea and give feedbacks to me, i would love to hear about ideas and know why you like or hate this idea. Feel free to ask or say anything.

Installation

Use pip install sema to install sema or download sema repository from github and open terminal in root of the project then type python setup.py build after that type python setup.py install

For creating and managing settings for developers

sema and sema -cli are available in terminal for creating and managing settings for developers.

Reading settings in your program

To extract settings in your program use from sema import extract, for now there is only 1 function in the library which returns the value for given option name get_value(file_name, option_name)

Altering the settings for users

Use change_setting_gui.py and change_setting_cli.py files in change_setting folder to alter settings.
To give the addresses of .setting file(s) you want this script to be responsible for, there are 2 ways:
1. Enter the addresses in sema_files file line by line, in the same folder as the script
2. Enter them in dot_setting_list inside the script

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

sema-0.1.3.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

sema-0.1.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file sema-0.1.3.tar.gz.

File metadata

  • Download URL: sema-0.1.3.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.8

File hashes

Hashes for sema-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2c8d77ef3957c9fb9660bc734d37d13102e8c172ee02b308932749911818a6df
MD5 e611440fb194d6de01f15ce9da885be3
BLAKE2b-256 efbe5583e741c3f3496350be4ed6850d32e595476f40e03db9eb51ccbc241af0

See more details on using hashes here.

File details

Details for the file sema-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sema-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.8

File hashes

Hashes for sema-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73eb32c6b8441f76141f88e025ca564f18ce78094dd270a02aa5cc1e7e94778e
MD5 2e0e90afe1ae86a253ef1dba7eddd355
BLAKE2b-256 ba0ce3109473095c575f7ec09d6fed830864d0f01e916f0bf6aca161d18bd333

See more details on using hashes here.

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