semvec/pypi-packages huggingface dataset:
argpaser 0.0.1
Python command-line parsing library
Requires Python: >=3.7

The argparse module makes it easy to write user friendly command line interfaces.

The program defines what arguments it requires, and argparse will figure out how 
to parse those out of sys.argv. The argparse module also automatically generates 
help and usage messages and issues errors when users give the program invalid arguments.

As of Python >= 2.7 and >= 3.2, the argparse module is maintained within the Python 
standard library. For users who still need to support Python < 2.7 or < 3.2, it is also 
provided as a separate package, which tries to stay compatible with the module in the 
standard library, but also supports older Python versions.

Also, we can fix bugs here for users who are stuck on some non-current python version, 
like e.g. 3.2.3 (which has bugs that were fixed in a later 3.2.x release).


Bugs

If you find a bug in argparse (pypi), please try to reproduce it with latest python 2.7 and 3.4 (and use argparse from stdlib).

If it happens there also, please file a bug in the python.org issue tracker. If it does not happen there, file a bug in the argparse package issue tracker.
py-easy-html 0.0.2
Generate HTML using python and also convert to PDF.
Requires Python: >=3.7, <4
Keywords: HTML Generator,HTML to PDF,

# Easy HTML
Generate HTML using python and also convert to PDF.

# Installation
```sh
pip install py-easy-html
```

# Getting started
General usage
```py
h1 = generate_tag('h1', body='This is a h1', class_name="your_class", id_name="your_id", self_closing=False)
```
> Output
```html
<h1 class="your_class" id="your_id">This is a h1</h1>

<!-- With self_closing=True -->
<h1 class="your_class" id="your_id" />
```

You can also do nested tags
```py
h1 = generate_tag('h1', body=generate_tag('span', body='Span inside h1'))
```
> Output
```html
<h1>
  <span>Span inside h1</span>
</h1>
```

And also multiple nested tags
```py
h1 = generate_tag(
        'h1',
        style={
          "display": "flex",
          "justify-content": "space-between",
          "align-items": "center",
        },
        body=[
            generate_tag('span', body='First Span'),
            generate_tag('span', body='Second'),
        ],
    )
```
> Output
```html
<h1 style="display: flex;justify-content: space-between;align-items: center;">
  <span>First Span</span>
  <span>Second</span>
</h1>
```
sqldisplay 1.0.4
A simple package to make displaying SQL queries much easier
Requires Python: >=3.7

# sqldisplay

## An extremely simple package to make displaying SQL queries much easier

### How does it work?
It simply takes cursor.description, as well as the query result and turns it into a readable format

### How do I use it?
Pretty simple, just install with pip(3):
`python3 -m pip install sqldisplay`

And then use it! (example)
```
import mysql.connector
from sqldisplay import sqldisplay

db = mysql.connector.connect(
    host="mysql-container",
    user="root",
    passwd="root",
    database="testdb"
)

cursor = db.cursor()

query = "SELECT * FROM Customers WHERE Country = 'USA';"
cursor.execute(query)
result = cursor.fetchall()
sqldisplay.format(cursor.description, result)
```
genCode 1.0.1
生成代码

# gencode

**[gencode](https://github.com/liuzhuogood/GenCode)** 
代码生成工具，可以连接MySQL\Oracle\postgresql\sqlite根据jinjan2模板生成出自已想要的代码

### 安装
``` shell
pip install gencode
```

### 使用方式
在模板文件所在的目录里执行 
``` sh
gendcode -c config.yml
```    
### 配置文件
##### config.yml
``` YAML
# 模板文件地址
#templatePath: '/data'
dbConf:
  # MySQL / Oracle / Sqlite / postgresql
  db_type: MySQL
  db_name: admin
  user: admin
  pwd: Vile123adMin_#
  host: 127.0.0.1
  # 多表使用;分割
  table_name: sys_operator

# Java
dataTypeMapping:
  varchar|text: String
  decimal(10,2): int

# Python
#dataTypeMapping:
#   default:
#  varchar(*)|text: str

myself:
  author: liuzhuo
  mail: liuzhuogood@foxmail.com
  sign: 我的签名

jinja2:
  variable_start_string: '{{'
  variable_end_string: '}}'


```

### 模板变量

| 变量           | 示例              | 说明 |
| ---------------- | ----------------- | ---- |
| XX_TABLE_NAME | SYS_BULLETIN_FILE |  表名变形  |
| xx_table_name | sys_bulletin_file | 表名变形 |
| XxTableName | SysBulletinFile | 表名变形 |
| xxTableName | sysBulletinFile | 表名变形 |
| TableName | BulletinFile | 表名变形 |
| tableName | bulletinFile | 表名变形 |
| table_name | bulletin_file | 表名变形 |
| xx | sys | 表名变形 |
| XX | SYS | 表名变形 |
| date | 2021-10-11 | 当前日期 |
| datetime | 2021-10-11 10:10:10 | 当前时间 |
| author | liuzhuo | 名称 |
| mail | liuzhuogood@foxmail | 邮箱 |
| sign | 自动生成代码 | 签名 |
| comment | 文件表 | 表备注 |
| columns | <参考columns集合> | 列集合 |



##### columns集合
| 关键字            | 说明                          |
| ----------------- | ----------------------------- |
| column_name    | 列名变形                      |
| COLUMN_NAME   | 列名变形                      |
| columnName     | 列名变形                      |
| ColumnName     | 列名变形                      |
| columnname     | 列名变形                      |
| COLUMNAME     | 列名变形                      |
| comment       | 列名备注                      |
| dataType       | 列名 的类型,可以通过配置映射 |
| is_pk       | 1：是主键 0：不是主键 |


##### 方法
* ljust(str,[width],[fill_char]) : 左补全字符
* rjust(str,[width],[fill_char]) : 右补全字符

### 模板
模板可以是文件目录，也可是文件，如果是文件为了区分必须以`.gcode`后缀命名，比如：
##### {{XxTableName}}Po.java.gcode
```
package {{xx}}

/**
 {{comment}} 实体类
 author: {{author}}
 mail: {{mail}}
*/
public class {{TableName}}{
    {% for c in columns %}
        private {{c.dataType}} {{c.columnName}};  //{{c.comment}}

        /**{{c.comment}}*/
        public {{c.dataType}} get{{c.ColumnName}}(){return {{c.columnName}};};

        /**{{c.comment}}*/
        public void set{{c.ColumnName}}({{c.dataType}} {{c.columnName}}){this.{{c.columnName}}={{c.columnName}};};
    {% endfor %}

}

```
substreams-python 0.0.1
WIP Substreams Python Adapter
Requires Python: >=3.9

# substreams-python
WIP Python Interface for querying via substreams

## Requirements
1. Install the package:

```curl
pip3 install substreams
```
2. Generate a StreamingFast API Token
    - Can do so via this [link](https://substreams.streamingfast.io/reference-and-specs/authentication)
    - Be sure to save the Token as an env var
    ```curl
    export SUBSTREAMS_API_TOKEN="<MY_CUSTON_SPI_TOKEN>"
    ```

3. Retrieve the relevant `.spkg` file
    - Can retrieve officially released `.spkg` files from the instructions [here](https://github.com/streamingfast/substreams-playground/releases)
        - Alternatively, can refer to the official StreamingFast [README](https://github.com/streamingfast/substreams-playground/tree/master/consumers/python) or generate a Messari `.spkg` from these [build instructions](https://github.com/messari/substreams/tree/master/uniswap-v2)


## Instructions

### Instantiation
First import the `Substream` object and pass in the path to your `.spkg` file
```python
from substreams import Substream

sb = Substream("substreams-uniswap-v2-v0.1.0.spkg")
```

If you already have the `sf/substreams` repo generated (as per [step #3 in these instructions](https://github.com/streamingfast/substreams-playground/tree/master/consumers/python)), then the library will import from those files. Otherwise, the files will be generated dynamically.

### Polling
In order to poll the substream, you will need to call the `poll()` function on the `Substream` object. `poll()` requires that you specify a list of output modules, you can inspect what modules are available by calling `supported_output_modules`

```python
# View available modules on .spkg
print(sb.output_modules)

# Poll the module and return a list of SubstreamOutput objects in the order of teh specified modules
result = sb.poll(["store_swap_events"], start_block=10000835, end_block=10000835+20000)
```

The result here is a `SubstreamOutput` object, you can access both the `data` and `snapshots` dataframes by doing:

```python
# These will return pandas DataFrames
swap_events_result = results[0]
data_df = swap_events_result.data
snapshots_df = swap_events_result.snapshots
```
petrobuffer 0.0.1
PetroBuffer
Requires Python: >=3.7

# PetroBuffer
A python package for performing geochemical redox calculations and buffer conversions.

[![Documentation Status](https://readthedocs.org/projects/petrobuffer/badge/?version=latest)](https://petrobuffer.readthedocs.io/en/latest/?badge=latest)

The current implementation has been developed in Python 3 and tested on Windows.

PetroBuffer currently only supports a small number of functions. The aim is to expand this package over time.

## Documentation

PetroBuffer's documentation is hosted on [Read the Docs](https://petrobuffer.readthedocs.io/en/latest/).

## Installation/Usage:
[![PyPI](https://img.shields.io/pypi/v/petrobuffer.svg?style=flat)](https://pypi.python.org/pypi/petrobuffer)
[![Compatible Python Versions](https://img.shields.io/pypi/pyversions/petrobuffer.svg?style=flat)](https://pypi.python.org/pypi/petrobuffer/)

```
pip install petrobuffer
```

Alternatively, to access the most up-to-date `development` version, you can clone this repository into the same root directory as your project files where you wish to use `PetroBuffer`.

The package can then be pip installed by running
```
pip install PetroBuffer/
```
from your project root, and imported in your files in the same way as other packages, using 
```
import petrobuffer
```

Check out the documentation for usage [examples](https://petrobuffer.readthedocs.io/en/latest/examples.html).

## Acknowledgements

The testing of this package made heavy use of the excellent Excel tools from Kayla Iacovino: an [fO2 buffer calculator](https://doi.org/10.5281/zenodo.5907867)  and a [Ferric/Ferrous converter](https://doi.org/10.5281/zenodo.5907844).
BasePage-QHMS 0.0.3
Base_page for selenium automation
Requires Python: >=3.7
Keywords: python,automation,appium,selenium,pytest,automation framework

# python_selenium_ctrl

Under construction! Not ready for use yet! Currently experimenting and planning!

Developed by Simon Poon from BuPA (c) 2022
Need to work with Seleium framework and pytest

# Other Code


# Procedure to publish to pypi

Reference: https://packaging.python.org/en/latest/tutorials/packaging-projects/#configuring-metadata

1. Update pyproject.toml

2. Install `build` and `twine` python package

```shell
python -m pip install build twine
```

3. Build package
```shell
python -m build
```

4. Publish to pypi (Need to have pypi account)
```shell
python -m twine upload dist/*
```
HavNegpy 1.2
Python package to analyze dielectric data

[![image](http://img.shields.io/pypi/v/HavNegpy.svg)](https://pypi.python.org/pypi/HavNegpy/)

# HavNegpy

HavNegpy is a python fit package to anaylze dielectric spectroscopy data. 
HavNeg is an acronym for Havriliak and Negami function, and the fit module is written specifically to analyze the dielectric loss and real part of AC conductivity data.

# Installation
pip install HavNegpy

# Some fit examples

<img src="readme_figures/Figure_1.png" width="400"> <img src="readme_figures/Figure_2.png" width="400">
<img src="readme_figures/Figure_3.png" width="400">
<img src="readme_figures/Figure_4.png" width="400">






## AUTHOR

Mohamed Aejaz Kolmangadi 

## LOOKING FOR HELP?

Checkout the Tutorials here (https://github.com/mkolmang/Tutorials_HavNegpy)