semvec/pypi-packages huggingface dataset:
pyuic5-tool 0.0.1
An automation tool for pyuic5 command
Requires Python: >=3.6

# Pyuic5 Tool

A dev tool to make the conversion of .ui PyQt5 Designer's files to .py files easier. just by making an instance
of the included class and calling the convert.ui method at the entry point of your code will convert the files without
having to deal with the cmd or terminal (dev tool to automate the conversion command). Also it helps to separate the
.ui files from the .py files in separate folders.

[Github-Repository](https://github.com/Abdelatief/Pyuic5-Tool)
config-checker 0.0.1
Python module wrapper around ConfigParser for enforcing string configuration file operations.
Requires Python: >=3.6

[![Build Status](https://travis-ci.org/stuianna/configChecker.svg?branch=master)](https://travis-ci.org/stuianna/configChecker)
[![Codecov](https://img.shields.io/codecov/c/github/stuianna/configChecker)](https://codecov.io/gh/stuianna/configChecker)
![GitHub](https://img.shields.io/github/license/stuianna/configChecker)

Python module wrapper around `ConfigParser` to ensure strict operation when working with configuration (.ini) files.

## Example Usage

Assume a configuration file, `config.ini`, with the following content:

```
[General]
api_key = api-private-key
conversion_factor = 123.456
print_results = False
```

Config parser can be used to ensure the expected values appear in the file, extra values are ignored with default values used as substitutes where entries are missing.

```python
from configchecker import ConfigChecker

config = ConfigChecker()

# Set the configuration values which are to be used.
# set_expectations(SectionName,SectionOption,DataType,DefaultValue)
config.set_expectation('General','api_key',str,'api-private-key')
config.set_expectation('General','retries',int,5)
config.set_expectation('General','conversion_factor',float,3.14)
config.set_expectation('General','print_results',bool,True)

# Try to load a configuration (.ini) file.
# Any previously set expectation which exists in the file has its value updated.
# Any value which doesn't exist in the file has its default value applied.
# Any configuration value in the file which isn't an expectation is ignored.
# This should be called before a file is written, or configuration value set or get
config.set_configuration_file('config.ini')

# Get the value of a configuration variable
printResults = config.get_value("General','print_results')

# Set the value of a configuration variable
config.set_value('General','api_key','123-23423csdfs3-2342-234')

# Write a configuration (.ini) file.
# This operation creates a new file with all the previously set expectations
# If a value hasn't been added for the option, then the default value is used.
config.write_configuation_file('config.ini')
```

The resulting (new) configuration file look as follows:
```ini
[General]
api_key = 123-23423csdfs3-2342-234
retries = 5
conversion_factor = 123.456
print_results = False
```
Notice the option `retries` has been added with the default value based on the expectation, and the `api_key` has been updated. The values of `conversion_factor` and `print_results` remained unchanged, as they existed in the original configuration file.
flask-records 0.0.15
Flask wrapper for the SQL Records

## Flask Records

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flask-records.svg)
[![Build Status](https://travis-ci.org/1011-1-000/flask-records.svg?branch=master)](https://travis-ci.org/1011-1-000/flask-records)

Flask-Records is an extension that manuiplate the DB with the raw sql for the flask application using records.

### Installation

> pip install flask-records

### Usage

#### Setup

Add the flask-records to your flask application.
```python
from flask import Flask
from flask_records import FlaskRecords

raw_db = FlaskRecords(app)
```
or initialize the app in the way below:
```python
from flask import Flask
from flask_records import FlaskRecords

raw_db = FlaskRecords()
raw_db.init_app(app)
```
#### Access DB With Flask Records

We have provided two decorators for easy using in the development:

##### query

The basic query decorator you can use in the flask records.

```python
from flask_records.decorators import query

@query("INSERT INTO users VALUES(:id, :name, :age)")
def hello_flask_records(id, name, age):
    pass

# call the function: hello_flask_records(1, 'Leo', 27)
```

also, you can wrap all the parameters in a dictionary and pass it to the function.
```python
from flask_records.decorators import query

@query( "INSERT INTO users VALUES(:id, :name, :age)")
def hello_flask_records(parameters):
    pass

# define a dict which contains the query parameters
# parameters = {
#     'id': 1,
#     'name': 'Leo', 
#     'age': 27
# }
# call the function: hello_flask_records(parameters)
```

##### query_by_page

This is the decorator which for the pagination.

```python
from flask_records.decorators import query_by_page

@query_by_page("SELECT * FROM users", 2)
def hello_flask_records(page):
    pass
```

### Extra Features

Flask-Records also provide the basic crud function, all you need to do is inherit the RecordsDao when you write the DAO layer classes.

```python
from flask_records import RecordsDao

class UserDao(RecordsDao):

    def __init__(self):
        super(UserDao, self).__init__()
```

For detailed instructions on the features, please refer to the flask records documentation.

- [Documentation](https://flask-records.readthedocs.io/en/latest/)

### ChangeLog

#### Release 0.0.15
- add a param converters in as_dict function, which means u can do the convertion according to your requirements. the format for this param is {'key': func}
- add bulk_query decorator, so you can insert multiple rows to the db
- add as_df function to the RecordCollection

#### Release 0.0.14
- Fix the initialize issue in the way like FlaskRecords()
- Modified the error in the Doc

#### Release 0.0.9
- Support the default params in the function when do the query
- Compatible with the Python2.7+ and 3.5+

#### Release 0.0.8
- Support the decorators on the function or method in the class
- Simplify the usage of the decorators
- Provide the base crud operations
- Add unit tests for the decorators, basic dao etc