semvec/pypi-packages huggingface dataset:
codepy 2025.1
Generate and execute native code at run time
License: MIT
Requires Python: >=3.10

.. image:: https://gitlab.tiker.net/inducer/codepy/badges/main/pipeline.svg
    :alt: Gitlab Build Status
    :target: https://gitlab.tiker.net/inducer/codepy/commits/main
.. image:: https://github.com/inducer/codepy/actions/workflows/ci.yml/badge.svg
    :alt: Github Build Status
    :target: https://github.com/inducer/codepy/actions/workflows/ci.yml
.. image:: https://badge.fury.io/py/codepy.svg
    :alt: Python Package Index Release Page
    :target: https://pypi.org/project/codepy/

CodePy is a C/C++ metaprogramming toolkit for Python. It helps you compile
source code and dynamically load it into the Python interpreter.
This facility also works in conjunction with with `PyCuda
<http://mathema.tician.de/software/pycuda>`_.  Dynamic compilation and linking
are so far only supported in Linux with the GNU toolchain.

See also the `documentation <http://documen.tician.de/codepy>`_ and the
`git tree <http://github.com/inducer/codepy>`_.
django-index-optimizer 0.1.0
A Django app that analyzes PostgreSQL query performance and recommends indexes.
License: MIT
Requires Python: >=3.8


# 🔍 Django Index Optimizer

**Django Index Optimizer** is a plug-and-play Django management command that analyzes your PostgreSQL query statistics and recommends indexes based on actual query patterns. It's designed to help **beginners and early-stage developers** optimize their applications **before scaling**, with minimal setup.

---

## 🚀 Features

- 📊 Analyzes `pg_stat_statements` to find slow or frequent queries.
- 🧠 Extracts filter patterns (`WHERE`, `ORDER BY`, `GROUP BY`) to identify indexing opportunities.
- 💡 Recommends relevant single-column indexes.
- ⚙️ Optionally creates missing indexes automatically.
- 🔁 Can be run regularly or manually via `manage.py`.

---

## 📦 Installation

1. **Install the package:**

```bash
pip install django-index-optimizer
```

2. **Add it to your Django project:**

```python
# settings.py

INSTALLED_APPS = [
    ...
    "optimizer",
]
```

3. **Ensure PostgreSQL has `pg_stat_statements` enabled:**

Add this to your `postgresql.conf` (or via cloud provider settings):

```conf
shared_preload_libraries = 'pg_stat_statements'
```

Then restart PostgreSQL and run:

```sql
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
```

---

## ⚡ Usage

Once installed, you can run the management command to optimize your indexes:

```bash
python manage.py optimize_indexes
```

This will:

1. Fetch frequent or slow queries from `pg_stat_statements`.
2. Analyze which columns are used most often in queries.
3. Recommend indexes and attempt to create them (using `CREATE INDEX CONCURRENTLY`).

---

## 📁 Project Structure

```
optimizer/
├── __init__.py
├── analyzer.py         # Fetches and parses query stats
├── recommender.py      # Suggests columns to index
├── applier.py          # Applies indexes if needed
└── management/
    └── commands/
        └── optimize_indexes.py   # Main management command file
```

---

## 🤝 Contributing

Contributions are welcome and **encouraged** — especially from beginners!

Whether it's:
- Improving index detection
- Supporting multi-column indexes
- Adding tests or docs
- Reporting bugs or edge cases

You're welcome to open issues or submit pull requests.

### 🛠 To develop locally:

```bash
git clone https://github.com/yassinbahri/django-index-optimizer.git
cd django-index-optimizer
pip install -e .
```

Then, add `"optimizer"` to a Django project and run tests or the management command.

---

## 📃 License

This project is licensed under the **MIT License** — see the [LICENSE](LICENSE) file for details.

---

## 🙌 A Note to Beginners

This tool was built with **you** in mind. Indexing is a powerful and often overlooked step in web app performance — by learning it early, you’ll save yourself many headaches down the line. 💡

Happy optimizing!
textract-supercog 1.6.5.post1
extract text from any document. no muss. no fuss.
License: MIT
Requires Python: >=3.6

# textract-supercog

Extract text from any document. No muss. No fuss.

This is a fork of the [original textract](https://github.com/deanmalmgren/textract) maintained by Supercog AI to ensure continued compatibility and support.

[Full documentation](http://textract.readthedocs.org)

## Credits

Originally written by [@deanmalmgren](https://github.com/deanmalmgren). Previously maintained by the good people at [@jazzband](https://github.com/jazzband).

[![Jazz Band](https://jazzband.co/static/img/badge.svg)](https://jazzband.co/)
[![Build Status](https://travis-ci.org/deanmalmgren/textract.svg?branch=master)](https://travis-ci.org/deanmalmgren/textract)
[![Version](https://img.shields.io/pypi/v/textract.svg)](https://warehouse.python.org/project/textract/)
[![Downloads](https://img.shields.io/pypi/dm/textract.svg)](https://warehouse.python.org/project/textract/)
[![Test Coverage](https://coveralls.io/repos/github/deanmalmgren/textract/badge.svg?branch=master)](https://coveralls.io/github/deanmalmgren/textract?branch=master)
[![Documentation Status](https://readthedocs.org/projects/textract/badge/?version=latest)](https://readthedocs.org/projects/textract/?badge=latest)
[![Updates](https://pyup.io/repos/github/deanmalmgren/textract/shield.svg)](https://pyup.io/repos/github/deanmalmgren/textract/)
[![Stars](https://img.shields.io/github/stars/deanmalmgren/textract.svg)](https://github.com/deanmalmgren/textract/stargazers)
[![Forks](https://img.shields.io/github/forks/deanmalmgren/textract.svg)](https://github.com/deanmalmgren/textract/network)

## Why this fork?

This fork was created to:
1. Fix compatibility issues with recent Python versions
2. Update dependencies to maintain security and performance
3. Enable usage in modern Python projects that require PyPI-compatible dependencies
4. Provide ongoing maintenance for a critical text extraction library

## Installation

```bash
pip install textract-supercog
```