semvec/pypi-packages huggingface dataset:
dbapi-hooks 0.0.1
A small example package
Requires Python: >=3.6

# Typhoon DbAPI Extension

Hooks and functions related to databases compatible with the [Python Database API Specification v2.0](https://www.python.org/dev/peps/pep-0249/).

## Installation

Run `pip install typhoon-dbapi` for the base package including functions and an EchoDb hook for testing purposes as well as SQLite.

## Install extras

For additional databases run:

- **Snowflake**: `pip install typhoon-dbapi[snowflake]`
- **Big Query**: `pip install typhoon-dbapi[bigquery]`
- **Postgres**: `pip install typhoon-dbapi[postgres]`
- **DuckDB**: `pip install typhoon-dbapi[duckdb]`
- **MySQL**: `pip install typhoon-dbapi[mysql]`

## Virtualenv for development

```shell script
python3 -m venv venv_typhoon
source venv_typhoon/bin/activate
python -m pip install -r requirements   # Re-run this every time you add new requirements
```

## Upload to Pypi

Make an account at https://pypi.org/account/register/.
Edit the setup.py to include project name, desired version, description etc. https://docs.python.org/3/distutils/setupscript.html
Run `make typhoon-extension` and use the user and password you created to upload.

## Upload docs to github pages

**Coming soon...**
geocurrency 0.20.0
Web based services to convert units and currencies.
Requires Python: >3.7.0

# Geocurrency

API service that provides 
- List of countries according to ISO-3166
- List of currencies according to ISO-4217
- List of conversion rates fetched from BCE APIs
- Custom conversion rates support by key
- List of units and Unit Systems
- Conversions from from and to currencies
- Conversion from and to units

## Install

### Preparation
set the following environment variables
- VENV_DIR: virtualenv directory
- GEOCURRENCY_SRC: Source directory for geocurrency
- GEOCURRENCY_DB_NAME: database name
- GEOCURRENCY_DB_USERNAME: database username
- GEOCURRENCY_DB_PASSWORD: database password

### Docker
Create a "packages" directory at the root of the project
Generate packages from "build.sh"

Folder "deployment/docker" provides an easy to setup docker environment running 
- Django app
- Redis cache
- Postgres backend
- nginx load balancer 

just run "docker-compose up"

### Using packages

ENV_NAME=<env_name>
PROJECT_NAME=<project_name>
PYTHON_VERSION=/usr/bin/python3 # use pypy :)
virtualenv -p $PYTHON_VERSION $ENV_NAME
cd $ENV_NAME
source bin/activate
pip install geocurrency
django-admin startproject $PROJECT_NAME
cp site_packages/geocurrency/core/settings.example.py $PROJECT_NAME/$PROJECT_NAME/settings.py
cp site_packages/geocurrency/core/urls.example.py $PROJECT_NAME/$PROJECT_NAME/urls.py
cd $PROJECT_NAME

Adapt settings and urls for your environment.

## Usage

### Routes
This package provides a OpenAPI documentation. See urls.example.py for a setup example. 

### Authentication
The app provides most services without authentication. 
Authentication is required to store custom conversion rates and custom conversion units.
By default, the app is configured to allow authentication through an API token that can be generated for a user on the 
Django admin site.

API authentication can be achieved with an Authorization header header with value Token <APIToken>
curl -H "Authorization: Token <user token>".

### Language support
The app supports translations for countries and units in 15 languages. More languages should be available soon.

### Fetch rates
The app uses python-forex as a mecanism to fetch currency rates. 
A django command is available to fetch rates from command line :
$ ./manage.py fetch_rates

## About 

### Project goals

Web based services to convert units and currencies. 
GeoCurrency is a portmanteau of the words "Geocoding" and "Currency" which where the main goals of the initial project

### Project website
A live version of this service is available at <https://api.geocurrency.me>.

### Leadership

This project is maintained by Frédéric Meurou <fm@peabytes.me>.
epico 0.1.3
Some epic utilities
Requires Python: >=3.6

# Epico

Just some epic python utilities


##  Functions
 ###  epico.pause()
Pauses the terminal and waits for input to continue.

 ###  epico.checktype(value, type)
 Checks if the value is, or can be converted to, the specified type.

 ###  epico.dir.delete(path, recursive=False)
 Deletes the specified path. recursive is defaulted to false.

 ###  epico.dir.create(path)
 Creates the specified directory.

 ###  epico.file.create(filename, encoding=None)
 Creates the specified file. ecoding defaults to None.

 ###  epico.file.append(filename, data, encoding=None)
 Appends data to an **already existing** file.

 ###  epico.file.write(filename, data, encoding=None)
 Overwrites data to an **already existing** file.

 ###  epico.file.delete(filename)
 Deletes the specified file

 ###  epico.file.exists(filename)
 Detects if a file exists, returns True or False.

 ###  epico.file.read(filename, mode='s')
 Reads the contents of a file, returns a string normally, but if mode set to '*l*' it becomes a list 

 ###  epico.thread.runfunc(function)
 Runs the specified function in a thread, and continues on in the code while that function is running