semvec/pypi-packages huggingface dataset:
uv-development-toggle 0.6.3
Easily toggle between development and production packages with uv. Quickly close development packages locally.
Requires Python: >=3.11
Keywords: uv, development, package

[![Release Notes](https://img.shields.io/github/release/iloveitaly/uv-development-toggle)](https://github.com/iloveitaly/uv-development-toggle/releases)
[![Downloads](https://static.pepy.tech/badge/uv-development-toggle/month)](https://pepy.tech/project/uv-development-toggle)
![GitHub CI Status](https://github.com/iloveitaly/uv-development-toggle/actions/workflows/build_and_publish.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

# Python Uv Development Package Toggler

A utility script for easily switching between local development and published sources for Python packages in your `pyproject.toml`.

Here's a quick video demonstration of how to use the tool:

[![How to Toggle Between PyPi and Git Package Versions](https://img.youtube.com/vi/P5PWD-4WSR8/0.jpg)](https://www.youtube.com/watch?v=P5PWD-4WSR8)

## Features

- Automatically toggles between local development paths and GitHub sources
- Preserves TOML file comments and structure
- Automatically clones repositories when switching to local development
- Supports branch tracking
- Falls back to PyPI metadata if direct GitHub repository is not found
- Integrates with GitHub CLI for username detection
- Creates necessary TOML structure (`tool.uv.sources`) if it doesn't exist
- Automatically runs `uv sync --upgrade-package` after successful updates

## Installation

```shell
uv add --dev uv-development-toggle

uv tool install uv-development-toggle
```

## Usage

To toggle a package [activemodel](https://github.com/iloveitaly/activemodel/):

```shell
uv-development-toggle activemodel --local
```

Then, after you push to a custom branch, reference the branch in your `pyproject.toml`:

```shell
uv-development-toggle activemodel --git
```

To revert a package to PyPI:

```shell
uv-development-toggle activemodel --pypi
```

This will:

1. Check if the package exists in your `PYTHON_DEVELOPMENT_TOGGLE` directory
2. If switching to local and the repository doesn't exist, clone it automatically (attempts to determine the repo URL from pypi information)
3. Update your `pyproject.toml` with the appropriate source configuration (creating the `tool.uv.sources` structure if needed)
4. Preserve any existing branch information when toggling
5. Automatically run `uv sync --upgrade-package <package_name>` to apply the changes

### Arguments

- `MODULE_NAME`: The name of the Python module to toggle
- `--local`: Force using local development path
- `--git`: Force using git source
- `--pypi`: Revert to default PyPI source

### Environment Variables

- `PYTHON_DEVELOPMENT_TOGGLE`: Directory for local development repositories (default: "pypi")

---

*This project was created from [iloveitaly/python-package-template](https://github.com/iloveitaly/python-package-template)*
pybarcodes 1.0.2
A Python package for barcode generation
Requires Python: >=3.10
Keywords: barcode, scanner, generator, ean13, code39, jan, python

pybarcodes
==========

.. image:: https://readthedocs.org/projects/pybarcodes/badge/?version=latest
    :target: https://pybarcodes.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status


.. image:: https://img.shields.io/pypi/v/pybarcodes.svg
    :target: https://pypi.python.org/pypi/pybarcodes
    :alt: PyPI version info


.. image:: https://img.shields.io/pypi/pyversions/pybarcodes.svg
    :target: https://pypi.python.org/pypi/pybarcodes
    :alt: PyPI supported Python versions


This is a python package to create and read barcodes
You can create file-like objects, text files and images from just a barcode number.
Image generation is fast so it can be used to create images in bulk.


Supported Barcode Types
------------------------

- EAN13
- EAN8
- EAN14
- JAN
- CODE39

More types will soon be supported.
PRs are welcome :)


Installing
-----------

**Python 3.9 or higher is required**

To install the library you can run the following command:

.. code:: bash

    pip install pybarcodes


Quick Example
--------------

You can see what barcodes are supported

.. code:: py

    >>> import pybarcodes
    >>> pybarcodes.SUPPORTED_BARCODES
    ['EAN13', 'EAN8', 'EAN14', 'JAN', 'CODE39']



And you can use this to view the barcode that was generated:

.. code:: py

    from pybarcodes import EAN13

    CODE = "012345678905"
    barcode = EAN13(CODE)
    barcode.show()

This is pretty much all the code you need to generate a barcode.


Saving an image of the barcode is pretty straightforward.

.. code:: py

    from pybarcodes import EAN14

    barcode = EAN14("40700719670720")

    # Saves the image in PNG format
    barcode.save("myimage.png")

    # You can also resize it.
    barcode.save("myimage2.png", size=(100000, 1000000))




EAN13 output from example 2:

.. image:: https://i.imgur.com/wd7jyIx.png
    :target: https://i.imgur.com/wd7jyIx.png
    :alt: Image of Barcode


Links
------

- `Documentation <https://pybarcodes.readthedocs.io/en/latest/index.html>`_
- `PyPi <https://pypi.org/project/pybarcodes/>`_