semvec/pypi-packages huggingface dataset:
vscapi 1.2.0
VapourSynth C Api bindings in Python
Requires Python: >=3.12

# vapoursynth-capi

### VapourSynth C Api bindings in Python
<br>

You can find support in the [IEW Discord server](https://discord.gg/qxTxVJGtst).
<br><br>
## How to install

Install `vscapi` with the following command:

```sh
$ pip install vscapi
```

Or if you want the latest git version, install it with this command:

```sh
$ pip install git+https://github.com/Setsugennoao/vapoursynth-capi.git
```
asyncur 0.5.4
Async functions to compare with anyio and asyncio, and toolkit to read excel with async/await.
Requires Python: <4.0,>=3.10

# asyncur
![Python Versions](https://img.shields.io/pypi/pyversions/asyncur)
[![LatestVersionInPypi](https://img.shields.io/pypi/v/asyncur.svg?style=flat)](https://pypi.python.org/pypi/asyncur)
[![GithubActionResult](https://github.com/waketzheng/asyncur/workflows/ci/badge.svg)](https://github.com/waketzheng/asyncur/actions?query=workflow:ci)
[![Coverage Status](https://coveralls.io/repos/github/waketzheng/asyncur/badge.svg?branch=main)](https://coveralls.io/github/waketzheng/asyncur?branch=main)
![Mypy coverage](https://img.shields.io/badge/mypy-100%25-green.svg)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

Some async functions that using anyio, and toolkit for excel read.

## Installation

<div class="termy">

```console
$ pip install asyncur
---> 100%
Successfully installed asyncur
```
Or use poetry:
```console
poetry add asyncur
```

## Usage

- bulk_gather/gather/run_async
```py
>>> from asyncur import gather, run_async
>>> async def foo():
...     return 1
...
>>> await bulk_gather([foo(), foo()], limit=200)
(1, 1)
>>> await gather(foo(), foo())
(1, 1)
>>> run_async(gather(foo(), foo()))
(1, 1)
```
- timeit
```py
>>> import time
>>> import anyio
>>> from asyncur import timeit
>>> @timeit
... async def sleep_test():
...     await anyio.sleep(3)
...
>>> await sleep()
sleep_test Cost: 3.0 seconds

>>> @timeit
... def sleep_test2():
...     time.sleep(3.1)
...
>>> sleep_test2()
sleep_test2 Cost: 3.1 seconds
```
- AsyncRedis
```py
from contextlib import asynccontextmanager

from asyncur import AsyncRedis
from fastapi import FastAPI, Request

@asynccontextmanager
async def lifespan(app):
    async with AsyncRedis(app):
        yield

app = FastAPI(lifespan=lifespan)

@app.get('/')
async def root(request: Request) -> list[str]:
    return await AsyncRedis(request).keys()

@app.get('/redis')
async def get_value_from_redis_by_key(request: Request, key: str) -> str:
    value = await AsyncRedis(request).get(key)
    if not value:
        return ''
    return value.decode()
```


- Read Excel File(need to install with xls extra: `pip install "asyncur[xls]"`)
```py
>>> from asycur.xls import load_xls
>>> await load_xls('tests/demo.xlsx')
[{'Column1': 'row1-\\t%c', 'Column2\nMultiLines': 0, 'Column 3': 1, 4: ''}, {'Column1': 'r2c1\n00', 'Column2\nMultiLines': 'r2 c2', 'Column 3': 2, 4: ''}]
```
ctypedffi 1.2.0
Wrapper around ctypes, for creating typed foreign function libraries
Requires Python: >=3.12

# ctyped-ffi

### ctypes wrapper for typed ffi
<br>

Wrapper around ctypes for creating typed foreign function interfaces built upon libraries

You can find support in the [IEW Discord server](https://discord.gg/qxTxVJGtst).
<br><br>
## How to install

Install `ctypedffi` with the following command:

```sh
$ pip install ctypedffi
```

Or if you want the latest git version, install it with this command:

```sh
$ pip install git+https://github.com/Setsugennoao/ctyped-ffi.git
```
zipch 2.0.1
Database of zipcodes, cantons and municipalities for Switzerland
Requires Python: >=3.7

Swiss zipcodes database
=======================

This library provides an easy way to look up a swiss zipcode and get its canton
or municipality. Use it like this:

```python
>>> from zipch import ZipcodesDatabase
>>> zd = ZipcodesDatabase('/tmp/zipcodes')
>>> zd.get_location(1003)
Location(official_name='Lausanne', canton='VD', municipality='Lausanne', coordinates=Lv95Coordinates(E=Decimal('2537956.3654948957'), N=Decimal('1152398.7080000006')))
```

Installation
------------

Zipch has been tested on Python 3.7+. The easiest way to install
it is by using PyPI:

```sh
pip install zipch
```

Usage
-----

Start by creating a `ZipcodesDatabase` object. In the example below,
`/tmp/zipcodes` is a file that will be used as the zipcodes database. If the
file doesn't exist yet, it will be created by downloading the latest version of
the zipcodes database.

```python
>>> from zipch import ZipcodesDatabase
>>> zd = ZipcodesDatabase('/tmp/zipcodes')
```

You can then get all the zipcodes registered in the database as a {zipcode:
location} dict:

```python
>>> zd.get_locations()
{8192: Location(official_name='Zweidlen', canton='ZH', municipality='Glattfelden'), 8193: Location(official_name='Eglisa', canton='ZH', municipality='Eglisa'), ...}
```

The library packs with some utility functions, these are all things that can
be derived from `get_locations()` but that are here for convenience:

```python
>>> zd.get_location(1003)
Location(official_name='Lausanne', canton='VD', municipality='Lausanne', coordinates=Lv95Coordinates(E=Decimal('2537956.3654948957'), N=Decimal('1152398.7080000006')))
>>> zd.get_zipcodes_for_municipality('Lausanne')
[1000, 1003, 1004, 1005, 1007, 1010, 1011, 1018, 1012]
>>> zd.get_zipcodes_for_canton('VD')
[1412, 1428, 1430, 1441, 1450, 1114, 1000, 1003, ...]
>>> zd.get_cantons()
['AG', 'AI', 'AR', 'BE', 'BL', 'BS', ...]
>>> zd.get_municipalities()
['Aadorf', 'Aara', 'Aarberg', 'Aarburg', 'Aarwangen', ...]
```

Geolocation
-----------

`Location` objects also have a `coordinates` attribute, which contains the
coordinates in [LV95
format](https://www.swisstopo.admin.ch/en/knowledge-facts/surveying-geodesy/reference-frames/local/lv95.html).
You can use the `lv95_to_wgs84` function to convert these coordinates to regular WGS84 longitude & latitude coordinates:

``` python
>>> from zipch import ZipcodesDatabase, lv95_to_wgs84
>>> lv95_to_wgs84(ZipcodesDatabase("/tmp/zipcodes").get_location(1003).coordinates)
```

Coordinates in regular WGS84 format are available in the `wgs84_coordinates`
attribute.
SEELE-test 1.1.3
Test of pip for SEELE development

CURRENT PROJECT IS SAMPLE, SOURCED FROM PRABHAT MISHRA:
https://github.com/prabhatx/django-basic-project

Project Description:

  This app will provide an educational infographic and personalized disaster preparation checklist based on a user's specific circumstance

Command for Manual Build and Install of django server:

  clone repo into an empty folder, move into DisasterPrepApp directory, run "python manage.py runserver" (substitute python for python3 in linux), follow the url given.

Repository Link:

  https://github.com/JMalegni/DisasterPrepApp

Run Command: