semvec/pypi-packages huggingface dataset:
sol-prices 1.0.0
This Python library provides utilities to fetch token prices from decentralized exchanges (DEXs) across Ethereum and Solana networks. It uses Web3.py for Ethereum and the Solders library for Solana, along with other utilities to interact with DEXs like Uniswap, Sushiswap, Pancakeswap (Ethereum), and Serum (Solana).
Requires Python: >=3.9

# DEX Price Fetching Library for Ethereum and Solana

This Python library provides utilities to fetch token prices from decentralized exchanges (DEXs) across Ethereum and Solana networks. It uses Web3.py for Ethereum and the Solders library for Solana, along with other utilities to interact with DEXs like Uniswap, Sushiswap, Pancakeswap (Ethereum), and Serum (Solana).

## Features

- **Ethereum (Uniswap, Sushiswap, Pancakeswap)**: 
  - Fetch prices of tokens.
  - Get pair address and reserves for token pairs.
  - Retrieve token symbol, total supply, and decimals.
  - Get the current block number and gas price.
  
- **Solana (Serum)**:
  - Fetch prices from Serum DEX on Solana.
  - Get the token balance of any Solana address.
  - Retrieve Solana transaction fees and account balances.

- **Utilities**:
  - Fetch the total supply of ERC-20 tokens.
  - Retrieve Solana transaction statuses.
  - Convert Base58 addresses to Solana public keys.

## Requirements

- Python 3.x
- Install required libraries via `pip`:
query-summary 0.1.1
A Flask middleware to track MongoDB queries and provide query statistics.
Requires Python: >=3.7

# Query Summary

Query Summary is a Flask middleware designed to track MongoDB queries and provide a summary of query statistics. It includes a web interface to display the last 10 requests and their associated query details.

## Usage
Here's an example of how to use the package:

```python
# Import the package
from query_summary import QuerySummaryMiddleware
from pymongo import MongoClient

# Initialize the Flask app
app = Flask(__name__)

# Initialize the QuerySummaryMiddleware
query_summary_middleware = QuerySummaryMiddleware(app)

# Use the same MongoClient instance with the QuerySummaryMiddleware
client = MongoClient("mongodb://host:port", event_listeners=[query_summary_middleware.query_counter])

# Example MongoDB operation
db = client["example_database"]
db["example_collection"].insert_one({"name": "Test Document"})
```

### Notes:
- If you are using `mongoengine`, it internally creates its own `MongoClient` instance unless you explicitly pass one to it. To ensure compatibility.

```python
import mongoengine as me

# Use the same MongoClient instance with mongoengine
me.connect(alias="example_database", host=client)
```

- The `QuerySummaryMiddleware` automatically tracks MongoDB commands executed by the `MongoClient` instance it is registered with.
- go to /query_summary to see statistics
<img width="1280" alt="Screenshot 2025-05-22 at 15 32 54" src="https://github.com/user-attachments/assets/17547730-c330-478c-a1a6-b5d3601dd917" />
datachampsai 0.1.10
A Streamlit app that refines data queries using chat context and reference instructions.
Requires Python: >=3.7

# ChatApp

**ChatApp** is a lightweight Python package that powers a Streamlit-based chatbot interface designed to refine user queries using prior chat history and a reference document.

The app uses OpenAI's GPT-4 model (via LangChain) to return:
- A **refined query**, and
- **Additional context or logic** to help with analysis or automation

---

## 🚀 Features

- 🧠 Maintains full **chat history** across turns
- 📄 Incorporates a static **reference document** with example queries and hints
- 🤖 Integrates with **OpenAI GPT-4** via LangChain
- 📦 Package-style installation for easy sharing or deployment
- ✅ Clean XML-style formatted response:
  ```xml
  <refined_query>
  ...
  </refined_query>

  <additional_info>
  ...
  </additional_info>
pygments_anyscript 1.5.0
Pygments lexer and style for the AnyScript language. AnyScript is the
Requires Python: >=3.7

# Pygments AnyScript plugin

[![pygments_anyscript](https://img.shields.io/pypi/v/pygments_anyscript.svg)](https://pypi.python.org/pypi/pygments_anyscript)
[![pygments_anyscript](https://anaconda.org/conda-forge/pygments_anyscript/badges/version.svg)](https://anaconda.org/conda-forge/pygments_anyscript)
[![pygments_anyscript](https://anaconda.org/conda-forge/pygments_anyscript/badges/downloads.svg)](https://anaconda.org/conda-forge/pygments_anyscript)


Pygments lexer and style for the AnyScript language. AnyScript is the
scripting langugage used for the AnyBody Modeling System; a system for
multibody musculoskeletal analysis.


## Installation

* **Pip:** Run ``pip install pygments-anyscript``
* **Conda:** Run ``conda -c conda-forge pygments_anyscript``
* **Source:** Download source and execute ``python -m pip install .``

Requirements
------------

 * pygments

Usage
-----

The lexer and style can be used with the Pygments api like any other lexer or style.

::

  $ pygmentize -l AnyScript MyAnyScriptFile.any
  $ pygmentize -l AnyScript -O style=anyscript MyAnyScriptFile.any
  $ pygmentize -l AnyScript -f html -O full,style=anyscript -o  MyAnyScriptFile.html MyAnyScriptFile.any
oak-cli 0.5.4
The Oakestra CLI
Requires Python: <4.0,>=3.10

[![PyPI - Version](https://img.shields.io/pypi/v/oak-cli)](https://pypi.org/project/oak-cli/)
[![Codestyle Check](https://github.com/oakestra/oakestra-cli/actions/workflows/python_codestyle_check.yml/badge.svg)](https://github.com/oakestra/oakestra-cli/actions/workflows/python_codestyle_check.yml)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oak-cli)](https://pypi.org/project/oak-cli/)

The **Oak-CLI** is the command line interface for the [Oakestra](https://github.com/oakestra/oakestra) Edge Computing platform.

📚 Check out the [Oak-CLI Wiki](https://www.oakestra.io/docs/getting-started/deploy-app/with-the-cli/) to get started.

## 🦾 Benefits of the **Oak-CLI**
- Native interface for the Oakestra APIs
- Eliminates the need to use external third-party tools
- Accelerated & simpler workflows
- The CLI commands can be chained together and used in custom scripts
- Automates tedious tasks away (e.g. acquiring login token, installing dependencies, and much more!)

## 📕 Requirements 
- Linux (preferably Debian/Ubuntu)
- Python Version **3.10+**

## ⬇️ Installation

```
pip install oak-cli
```