semvec/pypi-packages huggingface dataset:
MariaDB-Context-Manager 1.0.0
An easy to use mariadb context manager
Requires Python: >=3.9

# MariaDB Conext Manager

## Installation

```bash
pip install mariadb-context-manager
```

## Manual Installation

### Setting Up

Once you have your enviornment is set up, run the following in your terminal or command line to get the latest version:

```bash
pip install --upgrade git+https://github.com/avgra3/MariaDB-Context-Manager.git
```

An alternative to this would be to do the following:

```bash
git clone https://github.com/avgra3/MariaDB-Context-Manager.git --depth 1
cd ./MariaDB-Context-Manager
python -m pip install --upgrade build
python -m build
python -m pip install install ./dist/MariaDB_Context_Manager-0.1.4-py3-none-any.whl
```

__Note:__ For Linux or Mac systems, you may need to change "pip" to "pip3".
__Note:__ For Anaconda/Miniconda users, this module is not currently in any repositories, however, you can still use pip to install MariaDB package using the same command as above - but be aware that it may cause conflicts with packages you are using.

### Implementing the Context Manager

Before you run your query, make sure that you have MariaDB installed locally or have a connection to a MariaDB database.

If you encounter an error/exception while trying to connect to the database, the connection will be closed and the exception will be printed to the console.

#### Example

```python
from contextManager.contextManager import MariaDBCM
import pandas as pd
import polars as pl

# Our query we are using
query = """SELECT * FROM table;"""

# Database connection requirements
host = "HOST"
user = "USER"
password = "PASSWORD"
database = "DATABASE_NAME"
port = 3306 # The default MariaDB port
connection_params = {
    "user": user,
    "password": password,
    "host": host,
    "port": port,
    "database": database,
}

# A dictionary containing results, column names and warnings
with MariaDBCM(**connection_params) as maria:
    result_dictionary = maria.execute(query)

# Show data in a dataframe
# Pandas
df = pd.DataFrame(results["data"], columns=results["columns"])
# Maps the MariaDB data types to Python data types
df = df.astype(results["data_types"])

# Polars
prep = {}
column = 0
for field in result_dictionary["columns"]:
    column_data = [x[column] for x in result_dictionary["data"]]
    prep[field] = column_data
    column+=1

df_pl = pl.DataFrame(prep)
```

## Supported Data Types

Several standard python types are converted into SQL types and returned as Python objects when a statement is executed.

| Python Type | SQL Type |
|:--- | :--- |
| None | NULL |
| Bool | TINYINT |
| Float, Double | DOUBLE |
| Decimal | DECIMAL |
| Long | TINYINT, SMALLINT, INT, BIGINT |
| String | VARCHAR, VARSTRING, TEXT |
| ByteArray, Bytes | TINYBLOB, MEDIUMBLOB, BLOB, LONGBLOB |
| DateTime | DATETIME |
| Date | DATE |
| Time | TIME |
| Timestamp | TIMESTAMP |

For more information, see the [documentation](https://mariadb-corporation.github.io/mariadb-connector-python/usage.html) for more information.
sparkfun-qwiic-rfid 2.1.1
Sparkfun Electronics Qwiic RFID Package
Keywords: electronics, maker

Qwiic RFID 
==========================

This is a python package for SparkFun's Qwiic RFID Reader (https://www.sparkfun.com/products/15191). 
The functions included can get RFID tag ID's and their scan times. It's also possible to change the 
I2C address of the reader to something other than the default so that multiple can be daisy-chained 
on the same bus.
sc-ssGSEA 1.2.7
A Python package for performing gene set enrichment analysis on single cell clusters.
Requires Python: >=3.10.0

# Single Cell ssGSEA

**Description**: Single Cell ssGSEA (sc_ssGSEA) is an extension of ssGSEA tailored for single-cell data analysis. It addresses the challenge of sparsity by employing a normalization method and scoring metric chosen to minimize any variability. By utilizing sc_ssGSEA, scientists can explore and interpret pathway activity and functional alterations within heterogeneous populations of cells.

**Authors**: John Jun, Alexander T. Wenzel; UCSD - Mesirov Lab, UCSD

**Contact**: [Forum Link](https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!forum/genepattern-help)

See [documentation](https://github.com/genepattern/scGSEA/documentation.md) for more details.
sparkfun-qwiic-button 2.0.3
Sparkfun Electronics Qwiic Button Package
Keywords: electronics, maker

Qwiic Button
==========================

This package allows the user to:

Determine whether or not the button/switch is pressed or has been clicked
Set the brightness of the onboard LED
Configure the onboard LED's "heart-beat" effect
Store button events and their times in a FIFO queue
Use button-based interrupts
Adjust the device's I2C address
territory 1.5.1
Client for territory.dev

Uploading sources with the territory.dev CLI client
===================================================

Watch a video walkthrough:

[![YouTube video showing an example of using the client](https://img.youtube.com/vi/2gYkxGcLPoM/1.jpg)](https://www.youtube.com/watch?v=2gYkxGcLPoM)

## 1. Prepare your repository

### For C/C++ Projects
Clone your repository and generate `compile_commands.json`. See examples of how this can be generated
[here](https://github.com/territory-dev/builds?tab=readme-ov-file#how-do-i-generate-compile_commandsjson).

### For Go Projects
Clone your repository and ensure your Go module is properly initialized:

```bash
go mod download
```

### For Python Projects
If you created a virtualenv for your project, we recommend you install and run `territory` with
it activated.

## 2. Add a new repo in the territory.dev interface

Go to settings,

![](./doc/Screenshot%202024-08-22%20at%2008.54.51.png)

find the "[Add](https://app.territory.dev/repos/new)" button under
Repositories,

![](./doc/Screenshot%202024-08-22%20at%2008.56.12.png)

enter repository details, choose the "Uploaded" option, and select the appropriate language (C/C++ or Go),

![](./doc/Screenshot%202024-08-22%20at%2008.57.26.png)

create the new repository by clicking "Save".

## 3. Install the client

Install with pip within a Python virtualenv:

```
pip install territory
```

## 4. Run the upload

### For C/C++ Projects
In the directory containing `compile_commands.json` run:

```bash
territory upload --repo-id $YOUR_REPOSITORY_ID -l c
```

### For Go and Python Projects
In your git repository run:

```bash
# Go:
territory upload --repo-id $YOUR_REPOSITORY_ID -l go

# Python:
territory upload --repo-id $YOUR_REPOSITORY_ID -l python
```
We will scan the repo for modules, package parse results and send the code
for indexing.

The specific command containing the repository ID can be found in repository
settings under "Recent builds".

First time you use the client, we will open the web browser and you will be
asked to authenticate the client in the web app.

Once the upload finishes, indexing will start.


Non-interactive authentication
==============================

In case you need to run the upload in an environment where the browser
authentication flow is not suitable (e.g. a CI build), you can provide
the necessary token manually.

1.  In "Settings" go to to
    [Upload tokens](https://app.territory.dev/upload-tokens).
2.  Create a new token and save its text to a file.
3.  Point the CLI to the file by adding the `--upload-token-path`, e.g.:
    ```
    territory upload \
        --upload-token-path /path/to/token \
        --repo-id $YOUR_REPOSITORY_ID
    ```
sparkfun-qwiic-sgp40 2.0.0
SparkFun Electronics Qwiic SGP40
Keywords: electronics, maker

Qwiic Air Quality Sensor - SGP40
=============================================

The SparkFun SGP40 Air Quality Sensor provides a measurement of the quality of the air in your room or house. 
The SGP40 is based on Sensirions CMOS technology and uses a metal oxide (MOx) sensor with a temperature 
controlled micro hotplate and provides a humidity-compensated volatile organic compound (VOC) based indoor 
air quality signal. Both the sensing element and VOC Algorithm feature an unmatched robustness against 
contaminating gases present in real world applications enabling a unique long term stability as well as low 
drift and device to device variation.
PyToolMaster 1.0.0
A Swiss Army knife for developers with text summarization, ASCII art, task automation, math tools, and error handling.
Requires Python: >=3.6

# PyToolMaster

🚀 **The Ultimate Developer's Swiss Army Knife**  
PyToolMaster combines five powerful utilities into one sleek package, saving you time and effort.

## 🔧 Features

1. **📝 TextSummarizr** — Smart Text Summarization  
   - Quickly extract key points from long articles, blogs, or research papers.

2. **🖼️ ImageifyCLI** — ASCII Art from Images  
   - Transform any image into beautiful ASCII art with color and emoji support.

3. **⚙️ TaskFlow** — Lightweight Task Automation  
   - Schedule tasks with an intuitive, human-readable syntax.

4. **📐 BrainyMath** — Advanced Math Toolkit  
   - Solve algebra, calculus, and more — complete with interactive plotting.

5. **🐛 ErrorHandlerPro** — Enhanced Error Tracing  
   - Provides clear, actionable error reports with smart troubleshooting suggestions.

---

## 🛠️ Installation

Install PyToolMaster effortlessly with pip:

```bash
pip install PyToolMaster
```

---

## 🚀 Usage

### 📝 TextSummarizr — Summarize Text Quickly
```python
from pytoolmaster import TextSummarizr

text = """The quick brown fox jumps over the lazy dog. This sentence contains all letters of the alphabet."""
summarizer = TextSummarizr()
print(summarizer.summarize(text))
```

### 🖼️ ImageifyCLI — Turn Images into ASCII Art
```bash
python -m pytoolmaster.imageify path/to/image.jpg
```

### ⚙️ TaskFlow — Automate Repetitive Tasks
```python
from pytoolmaster import TaskFlow

TaskFlow("backup").every("1h").run("backup_script.py")
```

### 📐 BrainyMath — Advanced Math Computations
```python
from pytoolmaster import BrainyMath

print(BrainyMath.solve("x^2 - 4 = 0"))
```

### 🐛 ErrorHandlerPro — Smarter Error Handling
```python
from pytoolmaster import ErrorHandlerPro

try:
    1 / 0
except Exception as e:
    ErrorHandlerPro.report(e)
```

---

## 🔥 Why Choose PyToolMaster?

- 🎯 **All-in-one utility** — Save time switching between different tools.
- ⚡ **Fast and lightweight** — Minimal dependencies, optimized for performance.
- 💪 **Customizable** — Each module is standalone, so you only import what you need.

---

## 🧪 Running Tests

Ensure everything works smoothly:
```bash
python -m unittest discover tests
```

---

## 🧠 Contributing

We welcome contributions! To get started:
1. Fork the repository
2. Create a new branch (`git checkout -b feature/new-feature`)
3. Commit your changes (`git commit -m 'Add new feature'`)
4. Push to the branch (`git push origin feature/new-feature`)
5. Open a Pull Request

---

## 📜 License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

---

## 👨‍💻 Author

**Shiboshree Roy**  
- Email: shiboshreeroy169@gmail.com  
- GitHub: [ShiboshreeRoy](https://github.com/ShiboshreeRoy)

---

✨ *Empower your development workflow with PyToolMaster!*