semvec/pypi-packages huggingface dataset:
finparse 0.2.0
Module to parse a number-string to a float or decimal. 
Requires Python: >= 3.7

# Finparse

![pypi](https://img.shields.io/pypi/v/finparse?color=yellow&logo=python&logoColor=eee&style=flat-square)
![python](https://img.shields.io/pypi/pyversions/finparse?logo=python&logoColor=eee&style=flat-square)
[![pytest](https://img.shields.io/github/workflow/status/amancevice/finparse/pytest?logo=github&style=flat-square)](https://github.com/amancevice/finparse/actions)
[![coverage](https://img.shields.io/codeclimate/coverage/amancevice/finparse?logo=code-climate&style=flat-square)](https://codeclimate.com/github/amancevice/finparse/test_coverage)
[![maintainability](https://img.shields.io/codeclimate/maintainability/amancevice/finparse?logo=code-climate&style=flat-square)](https://codeclimate.com/github/amancevice/finparse/maintainability)

Parse financial strings to number objects

## Installation

```bash
pip install finparse
```


## Usage

```python
import finparse

finparse.parse("$1,234,567.89")
# => 1234567.89

finparse.parse("€1.234.567,89", decimal=",")
# => 1234567.89

finparse.parse("($1,234,567.89)")
# => -1234567.89

import decimal

finparse.parse("$1,234,567.89", cast=decimal.Decimal)
# => Decimal('1234567.89')
```

## Pandas

Pandas' `read_csv()` function provdides a `converters` argument that applies a function to the given column.

Using the example CSV file [`./tests/example.csv`](./tests/example), we can see the following behavior:

```python
import pandas

df = pandas.read_csv('./tests/example.csv')

print(df)
# =>        Acct     Balance
#    0   Savings  $1,234.567
#    1  Checking    ($0.987)
```

With the `converters` argument we can parse these values to floats:

```python
import finparse
import pandas

df = pandas.read_csv('./tests/example.csv', converters={'Balance': finparse.parse})

print(df)
# =>        Acct   Balance
#    0   Savings  1234.567
#    1  Checking    -0.987
```
redsim 1.0.1
Simulation framework for Gas Management in Redstone
Requires Python: >=3.8

# Redstone Gas Management Project

This repository contains all the code and analysis related to the Redstone Gas Management Project.

Redstone is an Optimistic Rollup built on the OP Stack by Lattice. It aims to be a highly efficient and cost-effective rollup for on-chain games and other heavy applications. This project focuses on modeling the costs of running the Redstone mainnet and stress-testing the operation’s sustainability.

For more information on the project, check-out the technical reports on [HackMD](https://hackmd.io/@nightingale/redstone-gas).
shrinkx 1.1.2
A Python tool for effortlessly compressing media files for sharing online.

# Shrinkx
Shrinkx is a Python tool for effortlessly compressing media files using ffmpeg. The tool is inspired by the website https://8mb.video and the annoyance of memorizing ffmpeg command arguments 😩.

## Demo
https://github.com/stormedx/shrinkx/assets/88412569/1937f006-138b-4cea-b86b-2b10a71ce76a

## Requirements

- Python 3.8 or higher 
- ffmpeg 5.x or higher is required and needs to be a $PATH variable on your system. Please read [ffmpeg](#ffmpeg) for additional information.
- yt-dlp (optional, allows you to directly compress from a link)

## Commands
- '-f', '--format': Choose the file format you want to encode the output to (i.e .mp4, .webm, .mov, .mkv).
- '-s', '--size': Allows you to compress a file to a specific size (kilobytes, megabytes, gigabytes).
- '-o', '--output': Output directory for the compressed file. If no location is given, the output file will output to the parent working directory of the source file.
- '--no-audio' : Removes all audio in the output file.
- '--chan' : Shortcut for compressing files into a .webm suitable for 4chan (<3.5mb in size, no audio).
- '--discord' : Shortcut for compressing files into an .mp4 <8mb in size

## Usage Examples

In it's simplest form, `shrinkx file.mov` will automatically compress & encode to .mp4 for sharing easily on platforms such as Discord.

`shrinkx --size 5mb -f webm video.mp4`
`shrinkx --discord <YouTube URL>`


### ffmpeg installation
WIP
lagrunge82-test-sdk 0.3
Python SDK for accessing OpenWeatherMap API

# `ApiClient` Class Description

## Installation:
```pip install lagrunge82-test-sdk```

## Features:

* Retrieve weather information for specified cities.
* Support for two operation modes: "on-demand" and "polling".

## Operation Modes:

* "On-demand":
    * The SDK updates weather information only upon user request.
    * Suitable for applications where weather information is not critical and does not require instant updates.
* "Polling":
    * The SDK periodically requests new weather information for all stored locations to have zero latency response to user requests.
    * Suitable for applications where quick access to up-to-date weather information is required.


## Usage:

```Python
from lagrunge82_test_sdk.api_client import ApiClient

# Create an API client instance with your API key
api_client = ApiClient("YOUR_API_KEY", mode='on-demand')

# Get weather data for a city
weather_data = api_client.get_weather("London")

# Access weather information
print(f"Temperature: {weather_data['main']['temp']}")
```

## Additional Features:
* **Data caching:**
    * The SDK caches received weather data to reduce the number of API requests.
    * The default Time-to-Live (TTL) is 600 seconds (10 minutes).
    * You can change the TTL if needed.

* **Geocoding:**
    * The SDK determines geographic coordinates by city name.

* **Error handling:**
    * The SDK handles errors that occur when interacting with the API.
    * You can get error information and handle it according to your requirements.

```Python
# Get weather data for 5 cities
cities = ["London", "Paris", "Berlin", "New York", "Tokyo"]

for city in cities:
    try:
        weather_data = api_client.get_weather(city)
        print(f"Weather data for {city}:")
        print(weather_data)
    except APIException as e:
        print(f"Error getting weather data for {city}:")
        print(e.message)
```

### Other features:
* **Multithreading:**
    * The SDK can perform requests to the OpenWeatherMap API in multithreaded mode, which can improve performance.
flask-orphus 0.1.8
A package that extends the flask webframework in a very opinionated way.
Requires Python: >=3.9

# Flask Orphus

Flask Orphus is a library that reflects my personal approach to Flask programming. It's built with a distinct set of opinions and methodologies that might not fit everyone's workflow. However, I've decided to open-source it, hoping it might resonate or offer insights into alternative ways of Flask development.

## Installation

You can install Flask Orphus using pip:

```bash
pip install flask_orphus
```


## Embracing Opinions

- **Tailored Approach**: Designed according to my preferred methods and experiences in Flask programming.
- **Unique Workflow**: A reflection of my personal style, which might not align with conventional approaches.
- **Open Invitation**: While niche, it's made available for exploration, encouraging diverse perspectives and potential adaptations.

## Who Might Find This Useful?

Consider using Flask Orphus if:

- You're curious about alternative ways to structure Flask applications.
- You're open to exploring a personalized approach to Flask programming.
- You're seeking inspiration or insights into different workflows within Flask.

## How to Use

Given its highly personalized nature, Flask Orphus may cater specifically to my workflow. Feel free to delve into the codebase and adapt elements that resonate with your preferences.

## Contributions

While contributions aren't expected due to its specialized nature, I welcome discussions, feedback, or insights that could benefit the Flask community.

## License

Flask Orphus is licensed under the MIT License. Refer to the [LICENSE](LICENSE) file for more information.