Define easy to use and user friendly settings for your programs
Reason this release was yanked:
Old
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.
Prototype version!
What is sema
I have faced many setting files that, all the available options for a setting or what does changes mean, are hard to find or the only way to understand most of options is through indirect sites, the other issue is the certainty that am i doing the changes the right way and will i break the system with 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 prototype, there are futures that are not done yet like: Tkinter version and support for multivalue for a setting 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 setting name get_value(file_name, setting_name)
Altering the settings for users
Use change_setting_cli.py and change_setting_gui.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sema-0.1.2.tar.gz
.
File metadata
- Download URL: sema-0.1.2.tar.gz
- Upload date:
- Size: 14.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 016fe213eb604d2db762e1ab2fde07245d7deefc034b97989c99463729111051 |
|
MD5 | fcfbccdbdc1b2d5f79702999c2d927ec |
|
BLAKE2b-256 | af5961854476eef203853f1218df348db04027bda21ef6fe2339869572b09cfa |
File details
Details for the file sema-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sema-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56bec53c8e32d3bf1dc89c21ecb39e2f170362f727833fcff942d0e829d2c12 |
|
MD5 | f13cab4c03347c6974be8cb2223735ff |
|
BLAKE2b-256 | 5113b6e246bf4eb8c60d71e59ae85bffc5f4c6151a3741561c4dccdbdef8d776 |