semvec/pypi-packages huggingface dataset:
Dexsnake 0.0.1
A Python package for trading on decentralized exchanges like Uniswap.
Requires Python: >=3.8

Dexsnake
========

Dexsnake is a lightweight Python package that makes it easy to make trades on
decentralized exchanges (DEXs) like `Uniswap <https://uniswap.org/>`_. The package is
designed for Python developers, quants, data scientists, algorithmic traders, and others
who are used to working in Python but may not have in-depth knowledge about blockchains
and decentralized apps. The code is organized to closely follow the structure of the
smart contracts, ensuring that by using Dexsnake, users also gain an understanding of
the underlying protocols.

Installation
############

.. note::
   
   ⚠️ Dexsnake is under active development and future relases are guaranteed to introduce
   breaking changes. Familiarize yourself with the source code and use the package
   with care to avoid the loss of funds!

The most recent release can be installed with `pip <https://pip.pypa.io/>`_:

.. code-block::

   pip install dexsnake

The most recent (*possibly untested!*) version can be installed from GitHub:

.. code-block::

   pip install git+https://github.com/kerkelae/dexsnake.git
autovid 0.0.2
Generate Reddit Text-to-Speech videos
Keywords: python, reddit, tts, video generator, automation

# Autovid
Python package to automate and simplify video creation.

## What It Does
Autovid simplifies the text-to-speech video creation process by producing beautifully edited videos with minimal commands. :sparkles:

https://github.com/user-attachments/assets/ff08d7fc-5804-4ec7-930b-4a55bc38a834

## :rocket: Getting Started

### Prerequisites
- Obtain a client key and secret from Reddit by creating an app [here](https://old.reddit.com/prefs/apps/).
- Install autovid via pip
   
   ```sh
   pip install autovid
   ```

### Usage
- Import autovid and update the Reddit API id and secret to let autovid access Reddit.
  ```py
   import autovid as av
   
   av.api_keys.client_id = "my_client_id"
   av.api_keys.client_secret = "my_client_secret"
   ```

- Autovid creates 'clips' that are combined to create the final video. Use the ```redditpostclip``` or ```redditcommentclip``` methods to create clips that can be passed to the ```makevideo``` method to generate the video.
   ```py
   q = [
      av.redditpostclip("https://www.reddit.com/r/reddit.com/comments/87/the_downing_street_memo/"),
      av.redditcommentclip("https://www.reddit.com/r/reddit.com/comments/87/comment/c16lbx4"),
   ]
   
   av.makevideo(queue=q)
   ```

That's it! You can find your final video saved as ```temp/final.mp4```!

### Advanced
You can pass in parameters to the ```makevideo``` method to tweak the final video.
- Adding background audio and video:
  
   ```py
   q = [
      av.redditpostclip("https://www.reddit.com/r/reddit.com/comments/87/the_downing_street_memo/"),
   ]
   
   av.makevideo(queue=q, background_audio_path="lofi_music.mp3", background_video_path="minecraft.mp4")
   ```
   Autovid will use these to add background music and videos to the final output. A 720p video works best!
pysie-accounting 0.0.2
SIE file decoder

pysie-accounting
================
This package contains tools to parse and read SIE files.

Currently there is only support for SIE type 4.

SIE files
=========
These files are used in accounting within Sweden. The file format is published
by [SIE gruppen](https://sie.se). Type 1-4 are text based, type 5 is xml
based. The SIE4 file is coded with codepage 437.


Example
=======

```python

import pysie_accounting.pysie as pysie
import sys


# open SIE file
p = pysie.PySIE ()
p.open_trans (sys.argv[2])
p.open (sys.argv[1])

# create a new accounting year
p.new_year()

# add some verifikat

last_year = p.get_balance(2099)
p.add_verifikat("Omföring av årets resultat", [(2098, "", last_year), (2099, "", -last_year)], "20230101")

account_fee = 1234
p.add_verifikat("Bankavgifter", [(1930, "", -account_fee), (6570, "", account_fee)], "20230101")

sum_result = p.sum_result()
p.add_verifikat("Omföring av årets resultat", [(2099, "", sum_result), (8999, "", -sum_result)], "20231231")


# print a pivot based on SRU
pivot = p.dfres.pivot_table(index='SRU',columns='Year',values='Balance')
print(pivot)

# write the updated file
p.write_sie4("test.se")


```
rwanda-locations 1.1
A package for working with Rwandan location metadata, including provinces, districts, sectors, cells, and villages.
Requires Python: >=3.6

# Rwanda Locations

`rwanda_locations` is a Python package designed to provide easy access to Rwandan location metadata. This includes hierarchical data from provinces down to villages, as well as various utility functions to retrieve and manipulate this data.

## Features

- Retrieve provinces
- Retrieve districts within a specific province
- Retrieve sectors within a specific district
- Retrieve cells within a specific sector
- Retrieve villages within a specific cell
- Get all child locations for a given level of hierarchy

## Installation

You can install the package using pip. If you're installing from a local directory, navigate to the directory containing `setup.py` and run:

```bash
pip install .
# As the package is established by PyPI, you can install it using:
pip install rwanda_locations
```

## Usage
Hereâ€™s how to use the package in your Python application:

```bash
from rwanda_locations.data import (
    get_provinces, get_districts_from_province, get_sectors_from_district,
    get_cells_from_sector, get_villages_from_cell, get_all_children
)

# Get all provinces
provinces = get_provinces()
print("Provinces:", provinces)

# Get districts in a specific province
districts = get_districts_from_province('East')
print("Districts in East Province:", districts)

# Get sectors in a specific district - For example: Nyagatare District
sectors = get_sectors_from_district('East', 'Nyagatare')
print("Sectors in Nyagatare District:", sectors)

# Get cells in a specific sector - For example: Nyagatare Sector
cells = get_cells_from_sector('East', 'Nyagatare', 'Nyagatare')
print("Cells in Nyagatare Sector:", cells)

# Get villages in a specific cell - For example: Barija Cell
villages = get_villages_from_cell('East', 'Nyagatare', 'Nyagatare', 'Barija')
print("Villages in Barija Cell:", villages)

# Get all children based on hierarchy level
children = get_all_children(province='East', district='Nyagatare', sector='Nyagatare')
print("Children in Nyagatare Sector:", children)
```


## License
This project is licensed under the MIT [License]() - see the LICENSE file for details.

## Contributing
Feel free to open issues and submit pull requests to improve the package. Your contributions are welcome!


## Contact
For any questions or feedback, please contact Fredson Gisa Kaze at [fredson.coder@gmail.com]()

## Acknowledgements
Thank you for using `rwanda_locations`. We hope it helps you efficiently work with Rwandan location data!


## Changelog
1.0
* initial release
* province names and other entities up-to villages(Imidugudu)
* lookup() method
* shapefile URLs for various regions
sdc-cryptography 1.2.1
A shared library for SDC services that use JWT with JWE

# sdc-cryptography

[![Build Status](https://travis-ci.org/ONSdigital/sdc-cryptography.svg?branch=master)](https://travis-ci.org/ONSdigital/sdc-cryptography)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b7b2eb54a248411086ddffb66097e578)](https://www.codacy.com/app/ONS/sdc-cryptography?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ONSdigital/sdc-cryptography&amp;utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/ONSdigital/sdc-cryptography/branch/master/graph/badge.svg)](https://codecov.io/gh/ONSdigital/sdc-cryptography)
A common source code library for SDC services that use JWE. Apps wishing to use this should add the sdc_cryptography
dependency to their requirements.txt and install with pip.

## Basic Use (with pipenv, recommended)

### Install requirements

```bash
pip install pipenv
make build
```

### Run the unit tests

```bash
pipenv run make test
```

### Create a package for deployment

```bash
pipenv run make sdist
```

## Basic Use (with activated virtual environment)

### Install requirements

These commands will generate a requirements file that pip can use.  It doesn't have to be created this way but this is the easiest way.

```bash
pip install pipenv
pipenv lock -r --dev > requirements.txt
pip install -r requirements.txt
```

### Run the unit tests

```bash
make test
```

### Create a package for deployment

```bash
make sdist
```

## Usage

Need to generate a keys.yml file first.  Note, this requires a file system
to store the file.  Then it needs to be loaded, and a key store generated.

```bash
generate_keys.py <key_folder_location>
```

After this has been configured, encrypting and decrypting can be done as in the
example below.

```python
secrets_from_file = yaml.safe_load("keys.yml")

validate_required_secrets(secrets_from_file, EXPECTED_SECRETS, KEY_PURPOSE_SUBMISSION)

key_store = KeyStore(secrets_from_file)

# Encrypt JSON (Purpose has a single encryption key in the key store)
from sdc.crypto.encrypter import encrypt
encrypted_json = encrypt(json, key_store, key_purpose)

# Encrypt JSON with encryption service (Purpose has multiple encryption keys in the key store each tagged with a service)
from sdc.crypto.encrypter import encrypt
encrypted_json = encrypt(json, key_store, key_purpose, encryption_for_service="some-service")

# Decrypt UTF8 jwe token
from sdc.crypto.decrypter import decrypt
data_bytes = data.decode('UTF8')
decrypted_json = decrypt(data_bytes, key_store, key_purpose)
```

## PyPi

This repo is available from PyPi at [sdc-cryptography](https://pypi.org/project/sdc-cryptography/)

The package is published automatically to PyPi when a tag is created in Github. The configuration for this is in the
.travis.yml file.