semvec/pypi-packages huggingface dataset:
dependency-groups 1.3.1
A tool for resolving PEP 735 Dependency Group data
Requires Python: >=3.8

Dependency Groups
=================

An implementation of Dependency Groups (`PEP 735 <https://peps.python.org/pep-0735/>`_).

This is a library which is able to parse dependency groups, following includes, and provide that data as output.

Interfaces
----------

``dependency-groups`` provides the following:

- A ``DependencyGroupResolver`` which implements efficient resolution of
  dependency groups

- A ``resolve()`` function which converts a dependency group name to a list of
  strings (powered by the resolver)

- Three CLI commands:

  - ``python -m dependency_groups GROUPNAME`` prints a dependency group's
    contents

  - ``lint-dependency-groups`` loads all dependency groups to check for
    correctness

  - ``pip-install-dependency-groups GROUPNAME...`` wraps a ``pip`` invocation
    to install the contents of a dependency group

- A pre-commit hooks which runs ``lint-dependency-groups``

Documentation
-------------

Full documentation is available on `the Dependency Groups doc site <https://dependency-groups.readthedocs.io/>`_.
pysubstitutor 1.0.2
A Python package for converting text substitution files between different formats.
Requires Python: >=3.7

### Pysubstitutor

# Description

`pysubstitutor` is a Python package designed to convert text substitution files between different formats. It supports reading and exporting text substitutions in formats such as Apple `.plist`, Gboard `.gboard`, and Markdown `.md`. The package is modular, extensible, and includes utilities for handling file conversions and zipping output files.

This tool is particularly useful for managing and migrating text substitution dictionaries across platforms or exporting them for documentation purposes.

### Features

- **Plist to Gboard Conversion**: Convert Apple `.plist` files to Gboard `.gboard` format.
- **Markdown Export**: Export text substitutions to a Markdown table for easy documentation.
- **Extensible Handlers**: Easily add support for new file formats by implementing custom handlers.
- **Command-Line Interface**: Run the tool via the command line with customizable input and output paths.
- **Dockerized Environment**: Run the application and tests in a Docker container for consistency.

### Installation

#### Using Conda

1. Create the conda environment:
   ```bash
   conda env create -f environment.yml
   ```

2. Activate the environment:
   ```bash
   conda activate pysubstitutor
   ```

3. Install pre-commit hooks:
   ```bash
   pre-commit install
   ```

#### Using Docker

1. Build the Docker image:
   ```bash
   make build
   ```

2. Verify the Docker image is built:
   ```bash
   docker images
   ```

### Testing

Run the tests inside the Conda environment:
```bash
pytest tests
```

Or, run the tests inside the Docker container:
```bash
make test
```

### Execution

Run the application inside the Docker container:
```bash
make run
```

Replace the `--input` and `--output` arguments in the `Makefile` if you need to customize the input and output file paths.
django_genc 0.1.0
A django app for working with GENC country codes
Requires Python: >=3.11
Keywords: codes, country, django, genc, iso

# django-genc

A reusable Django app for working with GENC (Geopolitical Entities, Names, and Codes) country codes.

Source data comes from the CIA World Fact Book: https://www.cia.gov/the-world-factbook/references/country-data-codes/
https://nsgreg.nga.mil/registries/browse/results.jsp?registryType=genc&registerField=IE4&itemTypeField=ggp&gce=all&field=name&show=all&status=all&sort=nameasc

## Features

- Store and manage GENC country codes with their ISO equivalents
- Custom `CountryField` that accepts both 2-character and 3-character ISO and 3-character GENC codes
- REST API serialization support
- Admin interface integration
- Data loading from CSV

## Installation

1. Install the package:

```bash
pip install django-genc
```

2. Add 'genc' to your INSTALLED_APPS:

```python
INSTALLED_APPS = [
    ...
    'genc',
    ...
]
```

3. Run migrations:

```bash
python manage.py migrate
```

## Usage

### Models

```python
from django.db import models
from django_genc.models import CountryField

class MyModel(models.Model):
    country = CountryField()
```

### Serializers

```python
from rest_framework import serializers
from django_genc.serializers import CountryFieldSerializer

class MyModelSerializer(serializers.ModelSerializer):
    country = CountryFieldSerializer()
    
    class Meta:
        model = MyModel
        fields = ['country']
```

## API

### CountryField

A custom field that can handle both 2-digit ISO and 3-digit GENC codes.

```python
from django_genc.models import CountryField

class MyModel(models.Model):
    country = CountryField()
```

The field will:
- Store values as 3-digit GENC codes in the database
- Accept both 2-digit ISO and 3-digit GENC codes as input
- Automatically convert ISO codes to GENC codes
- Validate that the code exists in the database

### CountryCode Model

The base model for storing country codes:

```python
from django_genc.models import CountryCode

# Get a country by GENC code
country = CountryCode.objects.get(genc_code='USA')

# Get a country by ISO code
country = CountryCode.objects.get(iso_code='US')

# Look up a country by a code under either standard
country = CountryCode.objects.get_by_code('US')
```

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.