semvec/pypi-packages huggingface dataset:
Flask-Alembic 3.2.0
Integrate Alembic with Flask.
Requires Python: >=3.10

# Flask-Alembic

Flask-Alembic is a [Flask][] extension that provides a configurable [Alembic][]
database migration environment. Supports [Flask-SQLAlchemy],
[Flask-SQLAlchemy-Lite], or plain [SQLAlchemy]. Supports Alembic's single and
multiple database templates.

[Flask]: https://flask.palletsprojects.com
[Alembic]: https://alembic.sqlalchemy.org
[SQLAlchemy]: https://www.sqlalchemy.org
[Flask-SQLAlchemy]: https://flask-sqlalchemy.palletsprojects.com
[Flask-SQLAlchemy-Lite]: https://flask-sqlalchemy-lite.readthedocs.io

## Pallets Community Ecosystem

> [!IMPORTANT]\
> This project is part of the Pallets Community Ecosystem. Pallets is the open
> source organization that maintains Flask; Pallets-Eco enables community
> maintenance of Flask extensions. If you are interested in helping maintain
> this project, please reach out on [the Pallets Discord server][discord].
>
> [discord]: https://discord.gg/pallets

## Basic Usage

You've created a Flask application and some models with Flask-SQLAlchemy. Now
start using Flask-Alembic:

```python
from flask_alembic import Alembic

# Intialize the extension
alembic = Alembic()
alembic.init_app(app)
```

Commands are added to the `flask` CLI:

```text
$ flask db --help
$ flask db revision "making changes"
$ flask db upgrade
```

You can also access Alembic's functionality from Python:

```python
with app.app_context():
    # Auto-generate a migration
    alembic.revision('making changes')

    # Upgrade the database
    alembic.upgrade()

    # Access the internals
    environment_context = alembic.env
```

## Differences from Alembic

- Configuration is taken from `Flask.config` instead of `alembic.ini` and
  `env.py`.
- Engines and model/table metadata are taken from Flask-SQLAlchemy(-Lite) if
  available, or can be configured manually.
- The migrations are stored directly in the `migrations` folder instead of the
  `versions` folder.
- Provides the migration environment instead of `env.py` and exposes Alembic's
  internal API objects.
- Differentiates between CLI commands and Python functions. The functions return
  revision objects and don't print to stdout.
- Allows operating Alembic at any API level while the app is running, through
  the exposed objects and functions.
- Adds a system for managing independent migration branches and makes it easier
  to work with named branches.
- Does not (currently) support offline migrations. I don't plan to work on this
  but am open to patches.
- Does not (currently) support async engines. I don't plan to work on this but
  am open to patches.
deepjson-py-connector 0.1.1
Python connector for DeepJSON server
Requires Python: >=3.7

# deepjson-py-connector

**A Python connector for interacting with DeepJSON, a flexible JSON document server for storage, scripting, and automation.**

---

## Features

- 🔐 Login with username/password and manage JWT tokens
- 📦 GET, POST, PUT, DELETE operations for keys
- 🖼️ Upload and move binary files (PDFs, images, etc.)
- 🧠 Scriptable value embedding using DeepJSON logic
- ⚙️ Works in sync mode with any DeepJSON backend
- ✅ Lightweight and dependency-friendly

---

## Installation

```bash
pip install deepjson-py-connector
```

---

## Usage

```python
from deepjson_py_connector import DeepJSONConnector

client = DeepJSONConnector({
    "base_url": "http://localhost:3000",
    "token": "your-jwt-token"
})

# GET example
response = client.get("my-key")

# POST a JSON string
client.post("my-key", '{"name": "John"}')

# Upload a file
with open("receipt.pdf", "rb") as f:
    client.upload_file("receipts/july", f)
```

---

## Flags & Options

Set optional flags before a request:

```python
client.set_binary(True)           # If you want binary content
client.set_get_body(True)         # GET with body override
client.set_overwrite_key(True)    # POST can overwrite if enabled
```

All flags reset automatically after each request.

---

## Testing

Tests are written with `pytest`.

```bash
pytest
```

---

## Project Structure

```
deepjson_py_connector/
├── __init__.py
├── client.py      # Main connector logic
├── tests/
│   └── test_client.py
└── pyproject.toml
```

---

## License

MIT © 2025 Eren Havuc