semvec/pypi-packages huggingface dataset:
pyconfigurer 0.1.1
A GUI configuration library for python programs.
License: MIT
Requires Python: >=3.6,<4.0
Keywords: configuration,gui

# PyConfigurer

A GUI configuration library for python programs.

# Usage

```python
from PyConfigurer import Configurer, ConfigTemplate, Token, FieldType


default_config = {
    "user": "Arjix",
    "age": 18
}


config_template = ConfigTemplate([
    Token(FieldType.text_input, "user", "Enter your name:", default_config["user"]),
    Token(FieldType.int_input, "age", "Enter your age:", default_config["age"])
])
config = Configurer(config_template)
new_config = config.run()


print("Old config", default_config)
print("New config", new_config)
```
PyConfigurer 0.0.5
A GUI configuration library for python programs.
License: MIT
Requires Python: >=3.6
Keywords: configuration,gui

# PyConfigurer

A GUI configuration library for python programs.

# Usage

```python
from PyConfigurer import Configurer, ConfigTemplate, Token, FieldType


default_config = {
    "user": "Arjix",
    "age": 18
}


config_template = ConfigTemplate([
    Token(FieldType.text_input, "user", "Enter your name:", default_config["user"]),
    Token(FieldType.int_input, "age", "Enter your age:", default_config["age"])
])
config = Configurer(config_template)
new_config = config.run()


print("Old config", default_config)
print("New config", new_config)
```
noserver-database 1.0.0
Simple package to store JSON data more easily
License: MIT
Keywords: conversion

# database:

Simple package to store json data more easily !<br>
No server and simple use !

```python
from noserver_database import Database

database = Database('database-name', debug=True) # init noserver_database | debug on True will show errors but no raise them

# Create table

database.create_table('table-name')

# Get table

table = database.get_table('table-name')
# or
table = database > 'table-name'

# Add documents

table.insert_one({'message': 'hello world', 'author': 'armand@camponovo.xyz'})

# Find documents

documents = table.find({'query': 'value'}) # search in all documents and return a list of documents that have the key 'query' at the value 'value'
document = table.find_one({'query': 'value'}) # search in all documents and return the documents that have the key 'query' at the value 'value'
all_docs = table.find({}) # get all documents

# Delete documents

# for a simple doc:
document.delete()

# for a list of docs:

for to_delete_document in documents:
    # to_delete_document.delete()
    ... 
```

# More documentation:


#### database.data.Database(self, name: str, folder: str = 'auto', debug: bool = False, do_not_create=False):

##### Methods:
> `create_table(self, name: str)` create a table<br>
> `get_table(self, name: str)` get a database.table.Table() object<br>
> `__gt__(self, name: str)` get a database.table.Table() object<br>


#### database.table.Table(self, name: str, super_: Database):

##### Methods:
> `raw_json_data(self)` get a list off all documents (in json) in the table<br>
> `insert_one(self, doc: dict)` insert a document in the table<br>
> `find_one(self, doc: dict)` return a database.document.Document() object that have the values of doc equal to the values of the returned document<br>
> `find(self, doc: dict)` return a list of database.document.Document() object that have the values of doc equal to the values of the returned documents<br>


#### database.document.Document(self, data: dict, super_: Database, table_children: Table):

##### Methods:
> `__getitem__(self)` return the item of the dict asked<br>
> `__del__(self)` delete the document (this will return an error if you try document['item'] after that)<br>