django-content-license


Namedjango-content-license JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/SamuelJennings/django-content-license
SummaryStore license information alongside your Django data models
upload_time2025-08-27 16:00:04
maintainerNone
docs_urlNone
authorSam Jennings
requires_python<4.0,>=3.10
licenseMIT
keywords django research science datasets research management open source open science fair
VCS
bugtrack_url
requirements asgiref astroid asttokens black cachetools certifi cfgv chardet charset-normalizer click colorama coverage coverage cssbeautifier decorator deptry dill distlib django-coverage-plugin django-debug-toolbar-template-profiler django-debug-toolbar django-extensions django-model-info django-stubs-ext django-stubs django djangorestframework-stubs djlint editorconfig exceptiongroup executing factory-boy fairdm-dev-tools faker filelock identify idna iniconfig invoke ipython isort jedi jsbeautifier json5 markdown-it-py matplotlib-inline mccabe mdurl mypy-extensions mypy networkx nodeenv packaging parso pathspec pexpect pip-licenses platformdirs pluggy pre-commit prettytable prompt-toolkit ptyprocess pure-eval pydot pygments pylint-celery pylint-django pylint-plugin-utils pylint pyparsing pyproject-api pytest-cov pytest-django pytest-env pytest-sugar pytest pyyaml regex requests rich ruff six sqlparse stack-data termcolor tomli tomlkit tox tqdm traitlets types-python-dateutil types-pytz types-pyyaml types-requests typing-extensions tzdata urllib3 virtualenv wcwidth wrapt
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Django Content License

[![Github Build](https://github.com/Geoluminate/django-content-license/actions/workflows/build.yml/badge.svg)](https://github.com/Geoluminate/django-content-license/actions/workflows/build.yml)
[![Github Tests](https://github.com/Geoluminate/django-content-license/actions/workflows/tests.yml/badge.svg)](https://github.com/Geoluminate/django-content-license/actions/workflows/tests.yml)
![GitHub](https://img.shields.io/github/license/Geoluminate/django-content-license)
![GitHub last commit](https://img.shields.io/github/last-commit/Geoluminate/django-content-license)
<!-- ![PyPI](https://img.shields.io/pypi/v/django-content-license) -->

A Django app that allows you to associate content licenses with model instances and display appropriate attribution in your HTML templates. Perfect for academic datasets, research publications, creative content, and any application where proper licensing and attribution are important.

## Features

- **License Management**: Store and manage various content licenses (MIT, GPL, Creative Commons, etc.)
- **Easy Integration**: Simple `LicenseField` that can be added to any Django model
- **Automatic Attribution**: Generate proper HTML attribution snippets automatically
- **Template Integration**: Built-in template tags for displaying license information
- **Admin Interface**: Full Django admin integration for license management
- **Validation**: Built-in validation for license consistency and requirements
- **Internationalization**: Full i18n support with translations
- **Performance**: Optimized database queries and indexing

## Quick Start

### Installation

```bash
pip install django-content-license
```

### Settings

Add `licensing` to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    # ... your other apps
    'licensing',
]
```

Run migrations:

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

### Basic Usage

#### 1. Add License Field to Your Model

```python
from django.db import models
from licensing.fields import LicenseField

class Dataset(models.Model):
    name = models.CharField(max_length=200)
    description = models.TextField()
    license = LicenseField()  # This field links to a License

    def __str__(self):
        return self.name

    def get_absolute_url(self):
        return f"/datasets/{self.pk}/"
```

#### 2. Create Licenses

```python
from licensing.models import License

# Create licenses through Django admin or programmatically
mit_license = License.objects.create(
    name="MIT License",
    canonical_url="https://opensource.org/licenses/MIT",
    description="A permissive license that allows commercial use",
    text="Permission is hereby granted, free of charge..."
)
```

#### 3. Display Attribution in Templates

```html
<!-- In your template -->
<div class="dataset">
    <h2>{{ dataset.name }}</h2>
    <p>{{ dataset.description }}</p>

    <!-- Automatic attribution display -->
    <div class="license-attribution">
        {{ dataset.get_license_display }}
    </div>
</div>
```

This will output properly formatted HTML like:
```html
<a href="/datasets/1/">My Dataset</a> is licensed under
<a href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener">MIT License</a>
```

## Advanced Usage

### Custom License Field Options

```python
class Article(models.Model):
    title = models.CharField(max_length=200)
    content = models.TextField()

    # Custom license field with specific options
    license = LicenseField(
        verbose_name="Content License",
        help_text="Choose the license for this article",
        on_delete=models.PROTECT,  # Prevent license deletion if referenced
        limit_choices_to={'is_active': True},  # Only show active licenses
    )
```

### Working with Creators/Authors

If your model has creator information, the attribution will automatically include it:

```python
class Research(models.Model):
    title = models.CharField(max_length=200)
    license = LicenseField()

    # The template will automatically look for these fields
    creators = models.CharField(max_length=200)  # Or ForeignKey to User/Author model

    def get_absolute_url(self):
        return f"/research/{self.pk}/"

# In template, this will generate:
# "Research Title by John Doe is licensed under MIT License"
```

### License Model API

```python
from licensing.models import License

# Get all active/recommended licenses
active_licenses = License.get_recommended_licenses()

# Check license properties
license = License.objects.get(name="MIT License")
print(license.status_display)  # "Active" or "Deprecated"
print(license.short_description)  # Truncated description
print(license.full_name)  # Full license name

# Validation
license.clean()  # Validates license consistency

# Future compatibility checking (placeholder)
compatibility = license.get_compatibility_with(other_license)
```

### Template Customization

You can override the default attribution template by creating your own `licensing/snippet.html`:

```html
<!-- templates/licensing/snippet.html -->
{% load i18n %}
<div class="license-info">
    {% if object.creators %}
        <span class="creators">By {{ object.creators }}</span>
    {% endif %}
    <span class="license-link">
        Licensed under <a href="{{ license.canonical_url }}" target="_blank" rel="noopener">
            {{ license.name }}
        </a>
    </span>
</div>
```

## Available License Fields

### LicenseField Parameters

- `verbose_name`: Display name for the field (default: "license")
- `help_text`: Help text for admin forms
- `on_delete`: What to do when license is deleted (default: `models.PROTECT`)
- `limit_choices_to`: Limit available license choices
- `null/blank`: Whether field can be empty

### Model Validation

The `License` model includes built-in validation:

```python
# Deprecated licenses must have a deprecated_date
license = License(name="Old License", is_active=False)
license.clean()  # Raises ValidationError

# Active licenses shouldn't have deprecated_date
license = License(
    name="Active License",
    is_active=True,
    deprecated_date=timezone.now().date()
)
license.clean()  # Raises ValidationError
```

## Testing

The package includes comprehensive test coverage using both Django's TestCase and pytest.

### Running Tests

```bash
# Run all tests with Django's test runner
python manage.py test

# Run with pytest (recommended)
pytest

# Run with coverage
pytest --cov=licensing --cov-report=html

# Run specific test categories
pytest -m unit  # Unit tests only
pytest -m integration  # Integration tests only
pytest -m "not slow"  # Skip slow tests
```

### Test Organization

- `tests/test_models.py` - Model functionality (Django TestCase)
- `tests/test_fields.py` - Field functionality (Django TestCase)
- `tests/test_pytest_models.py` - Model tests (pytest)
- `tests/test_pytest_fields.py` - Field tests (pytest)
- `tests/test_integration.py` - Integration tests (pytest)

### Writing Your Own Tests

```python
import pytest
from licensing.models import License
from licensing.fields import LicenseField

@pytest.mark.django_db
def test_my_model_with_license():
    license_obj = License.objects.create(
        name="Test License",
        canonical_url="https://example.com/license",
        text="License text"
    )

    # Test your model here
    instance = MyModel.objects.create(license=license_obj)
    assert instance.license == license_obj
```

## Admin Integration

The package provides a complete Django admin interface:

### License Admin Features
- List view with license name, status, and description
- Filtering by active status and creation date
- Search by name and description
- Bulk actions for activating/deactivating licenses
- Form validation with helpful error messages

### Custom Admin

You can customize the admin interface:

```python
# admin.py
from django.contrib import admin
from licensing.models import License

@admin.register(License)
class CustomLicenseAdmin(admin.ModelAdmin):
    list_display = ['name', 'status_display', 'canonical_url']
    list_filter = ['is_active', 'created_at']
    search_fields = ['name', 'description']
    readonly_fields = ['created_at', 'updated_at', 'slug']
```

## Performance Considerations

### Database Optimization
- Indexes are automatically created on `is_active` and `slug` fields
- License lookups are optimized using `select_related`
- Slug generation uses efficient bulk queries

### Caching
For high-traffic sites, consider caching license information:

```python
from django.core.cache import cache
from django.db.models.signals import post_save

def invalidate_license_cache(sender, instance, **kwargs):
    cache.delete(f'license_{instance.pk}')

post_save.connect(invalidate_license_cache, sender=License)
```

## Migration from Other Apps

If you're migrating from another licensing solution:

```python
# Create a data migration
from django.db import migrations

def migrate_licenses(apps, schema_editor):
    OldLicense = apps.get_model('old_app', 'License')
    NewLicense = apps.get_model('licensing', 'License')

    for old_license in OldLicense.objects.all():
        NewLicense.objects.create(
            name=old_license.name,
            canonical_url=old_license.url,
            text=old_license.text,
            # Map other fields as needed
        )

class Migration(migrations.Migration):
    dependencies = [
        ('licensing', '0001_initial'),
        ('old_app', '0001_initial'),
    ]

    operations = [
        migrations.RunPython(migrate_licenses),
    ]
```

## Common Use Cases

### Academic Research
```python
class ResearchPaper(models.Model):
    title = models.CharField(max_length=200)
    authors = models.ManyToManyField(User)
    license = LicenseField(
        help_text="Choose appropriate license for your research data"
    )

    # For dataset licensing
    dataset_license = LicenseField(
        verbose_name="Dataset License",
        related_name="research_datasets"
    )
```

### Creative Content
```python
class Artwork(models.Model):
    title = models.CharField(max_length=200)
    artist = models.ForeignKey(User, on_delete=models.CASCADE)
    license = LicenseField(
        limit_choices_to={'name__icontains': 'Creative Commons'}
    )
```

### Software Projects
```python
class SoftwareProject(models.Model):
    name = models.CharField(max_length=200)
    license = LicenseField(
        limit_choices_to={'name__in': ['MIT', 'GPL', 'Apache']}
    )
```

## Contributing

We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.

### Development Setup

```bash
# Clone the repository
git clone https://github.com/SSJenny90/django-content-license.git
cd django-content-license

# Install dependencies
poetry install

# Run tests
poetry run pytest

# Run linting
poetry run black .
poetry run pylint licensing/
```

### Code Quality

We maintain high code quality standards:
- 100% test coverage target
- Type hints for all public APIs
- Comprehensive documentation
- Regular security audits

## License

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

## Support

- **Documentation**: Full documentation available at [Read the Docs](https://django-content-license.readthedocs.io)
- **Issues**: Report bugs at [GitHub Issues](https://github.com/SSJenny90/django-content-license/issues)
- **Discussion**: Join the discussion at [GitHub Discussions](https://github.com/SSJenny90/django-content-license/discussions)

## Changelog

See [HISTORY.md](HISTORY.md) for a complete changelog.

## Related Projects

- [django-licenses](https://github.com/example/django-licenses) - Alternative license management
- [Creative Commons API](https://github.com/creativecommons/cc-licenses) - Official CC license data

---

Made with ❤️ by the Django community


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SamuelJennings/django-content-license",
    "name": "django-content-license",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "django, research, science, datasets, research management, open source, open science, FAIR",
    "author": "Sam Jennings",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/03/c8/50ae6bfa6be8f1577a6f231cb97fbda0a3b252fbdd50c0eefdd1e7139d9e/django_content_license-0.2.3.tar.gz",
    "platform": null,
    "description": "# Django Content License\n\n[![Github Build](https://github.com/Geoluminate/django-content-license/actions/workflows/build.yml/badge.svg)](https://github.com/Geoluminate/django-content-license/actions/workflows/build.yml)\n[![Github Tests](https://github.com/Geoluminate/django-content-license/actions/workflows/tests.yml/badge.svg)](https://github.com/Geoluminate/django-content-license/actions/workflows/tests.yml)\n![GitHub](https://img.shields.io/github/license/Geoluminate/django-content-license)\n![GitHub last commit](https://img.shields.io/github/last-commit/Geoluminate/django-content-license)\n<!-- ![PyPI](https://img.shields.io/pypi/v/django-content-license) -->\n\nA Django app that allows you to associate content licenses with model instances and display appropriate attribution in your HTML templates. Perfect for academic datasets, research publications, creative content, and any application where proper licensing and attribution are important.\n\n## Features\n\n- **License Management**: Store and manage various content licenses (MIT, GPL, Creative Commons, etc.)\n- **Easy Integration**: Simple `LicenseField` that can be added to any Django model\n- **Automatic Attribution**: Generate proper HTML attribution snippets automatically\n- **Template Integration**: Built-in template tags for displaying license information\n- **Admin Interface**: Full Django admin integration for license management\n- **Validation**: Built-in validation for license consistency and requirements\n- **Internationalization**: Full i18n support with translations\n- **Performance**: Optimized database queries and indexing\n\n## Quick Start\n\n### Installation\n\n```bash\npip install django-content-license\n```\n\n### Settings\n\nAdd `licensing` to your `INSTALLED_APPS`:\n\n```python\nINSTALLED_APPS = [\n    # ... your other apps\n    'licensing',\n]\n```\n\nRun migrations:\n\n```bash\npython manage.py migrate licensing\n```\n\n### Basic Usage\n\n#### 1. Add License Field to Your Model\n\n```python\nfrom django.db import models\nfrom licensing.fields import LicenseField\n\nclass Dataset(models.Model):\n    name = models.CharField(max_length=200)\n    description = models.TextField()\n    license = LicenseField()  # This field links to a License\n\n    def __str__(self):\n        return self.name\n\n    def get_absolute_url(self):\n        return f\"/datasets/{self.pk}/\"\n```\n\n#### 2. Create Licenses\n\n```python\nfrom licensing.models import License\n\n# Create licenses through Django admin or programmatically\nmit_license = License.objects.create(\n    name=\"MIT License\",\n    canonical_url=\"https://opensource.org/licenses/MIT\",\n    description=\"A permissive license that allows commercial use\",\n    text=\"Permission is hereby granted, free of charge...\"\n)\n```\n\n#### 3. Display Attribution in Templates\n\n```html\n<!-- In your template -->\n<div class=\"dataset\">\n    <h2>{{ dataset.name }}</h2>\n    <p>{{ dataset.description }}</p>\n\n    <!-- Automatic attribution display -->\n    <div class=\"license-attribution\">\n        {{ dataset.get_license_display }}\n    </div>\n</div>\n```\n\nThis will output properly formatted HTML like:\n```html\n<a href=\"/datasets/1/\">My Dataset</a> is licensed under\n<a href=\"https://opensource.org/licenses/MIT\" target=\"_blank\" rel=\"noopener\">MIT License</a>\n```\n\n## Advanced Usage\n\n### Custom License Field Options\n\n```python\nclass Article(models.Model):\n    title = models.CharField(max_length=200)\n    content = models.TextField()\n\n    # Custom license field with specific options\n    license = LicenseField(\n        verbose_name=\"Content License\",\n        help_text=\"Choose the license for this article\",\n        on_delete=models.PROTECT,  # Prevent license deletion if referenced\n        limit_choices_to={'is_active': True},  # Only show active licenses\n    )\n```\n\n### Working with Creators/Authors\n\nIf your model has creator information, the attribution will automatically include it:\n\n```python\nclass Research(models.Model):\n    title = models.CharField(max_length=200)\n    license = LicenseField()\n\n    # The template will automatically look for these fields\n    creators = models.CharField(max_length=200)  # Or ForeignKey to User/Author model\n\n    def get_absolute_url(self):\n        return f\"/research/{self.pk}/\"\n\n# In template, this will generate:\n# \"Research Title by John Doe is licensed under MIT License\"\n```\n\n### License Model API\n\n```python\nfrom licensing.models import License\n\n# Get all active/recommended licenses\nactive_licenses = License.get_recommended_licenses()\n\n# Check license properties\nlicense = License.objects.get(name=\"MIT License\")\nprint(license.status_display)  # \"Active\" or \"Deprecated\"\nprint(license.short_description)  # Truncated description\nprint(license.full_name)  # Full license name\n\n# Validation\nlicense.clean()  # Validates license consistency\n\n# Future compatibility checking (placeholder)\ncompatibility = license.get_compatibility_with(other_license)\n```\n\n### Template Customization\n\nYou can override the default attribution template by creating your own `licensing/snippet.html`:\n\n```html\n<!-- templates/licensing/snippet.html -->\n{% load i18n %}\n<div class=\"license-info\">\n    {% if object.creators %}\n        <span class=\"creators\">By {{ object.creators }}</span>\n    {% endif %}\n    <span class=\"license-link\">\n        Licensed under <a href=\"{{ license.canonical_url }}\" target=\"_blank\" rel=\"noopener\">\n            {{ license.name }}\n        </a>\n    </span>\n</div>\n```\n\n## Available License Fields\n\n### LicenseField Parameters\n\n- `verbose_name`: Display name for the field (default: \"license\")\n- `help_text`: Help text for admin forms\n- `on_delete`: What to do when license is deleted (default: `models.PROTECT`)\n- `limit_choices_to`: Limit available license choices\n- `null/blank`: Whether field can be empty\n\n### Model Validation\n\nThe `License` model includes built-in validation:\n\n```python\n# Deprecated licenses must have a deprecated_date\nlicense = License(name=\"Old License\", is_active=False)\nlicense.clean()  # Raises ValidationError\n\n# Active licenses shouldn't have deprecated_date\nlicense = License(\n    name=\"Active License\",\n    is_active=True,\n    deprecated_date=timezone.now().date()\n)\nlicense.clean()  # Raises ValidationError\n```\n\n## Testing\n\nThe package includes comprehensive test coverage using both Django's TestCase and pytest.\n\n### Running Tests\n\n```bash\n# Run all tests with Django's test runner\npython manage.py test\n\n# Run with pytest (recommended)\npytest\n\n# Run with coverage\npytest --cov=licensing --cov-report=html\n\n# Run specific test categories\npytest -m unit  # Unit tests only\npytest -m integration  # Integration tests only\npytest -m \"not slow\"  # Skip slow tests\n```\n\n### Test Organization\n\n- `tests/test_models.py` - Model functionality (Django TestCase)\n- `tests/test_fields.py` - Field functionality (Django TestCase)\n- `tests/test_pytest_models.py` - Model tests (pytest)\n- `tests/test_pytest_fields.py` - Field tests (pytest)\n- `tests/test_integration.py` - Integration tests (pytest)\n\n### Writing Your Own Tests\n\n```python\nimport pytest\nfrom licensing.models import License\nfrom licensing.fields import LicenseField\n\n@pytest.mark.django_db\ndef test_my_model_with_license():\n    license_obj = License.objects.create(\n        name=\"Test License\",\n        canonical_url=\"https://example.com/license\",\n        text=\"License text\"\n    )\n\n    # Test your model here\n    instance = MyModel.objects.create(license=license_obj)\n    assert instance.license == license_obj\n```\n\n## Admin Integration\n\nThe package provides a complete Django admin interface:\n\n### License Admin Features\n- List view with license name, status, and description\n- Filtering by active status and creation date\n- Search by name and description\n- Bulk actions for activating/deactivating licenses\n- Form validation with helpful error messages\n\n### Custom Admin\n\nYou can customize the admin interface:\n\n```python\n# admin.py\nfrom django.contrib import admin\nfrom licensing.models import License\n\n@admin.register(License)\nclass CustomLicenseAdmin(admin.ModelAdmin):\n    list_display = ['name', 'status_display', 'canonical_url']\n    list_filter = ['is_active', 'created_at']\n    search_fields = ['name', 'description']\n    readonly_fields = ['created_at', 'updated_at', 'slug']\n```\n\n## Performance Considerations\n\n### Database Optimization\n- Indexes are automatically created on `is_active` and `slug` fields\n- License lookups are optimized using `select_related`\n- Slug generation uses efficient bulk queries\n\n### Caching\nFor high-traffic sites, consider caching license information:\n\n```python\nfrom django.core.cache import cache\nfrom django.db.models.signals import post_save\n\ndef invalidate_license_cache(sender, instance, **kwargs):\n    cache.delete(f'license_{instance.pk}')\n\npost_save.connect(invalidate_license_cache, sender=License)\n```\n\n## Migration from Other Apps\n\nIf you're migrating from another licensing solution:\n\n```python\n# Create a data migration\nfrom django.db import migrations\n\ndef migrate_licenses(apps, schema_editor):\n    OldLicense = apps.get_model('old_app', 'License')\n    NewLicense = apps.get_model('licensing', 'License')\n\n    for old_license in OldLicense.objects.all():\n        NewLicense.objects.create(\n            name=old_license.name,\n            canonical_url=old_license.url,\n            text=old_license.text,\n            # Map other fields as needed\n        )\n\nclass Migration(migrations.Migration):\n    dependencies = [\n        ('licensing', '0001_initial'),\n        ('old_app', '0001_initial'),\n    ]\n\n    operations = [\n        migrations.RunPython(migrate_licenses),\n    ]\n```\n\n## Common Use Cases\n\n### Academic Research\n```python\nclass ResearchPaper(models.Model):\n    title = models.CharField(max_length=200)\n    authors = models.ManyToManyField(User)\n    license = LicenseField(\n        help_text=\"Choose appropriate license for your research data\"\n    )\n\n    # For dataset licensing\n    dataset_license = LicenseField(\n        verbose_name=\"Dataset License\",\n        related_name=\"research_datasets\"\n    )\n```\n\n### Creative Content\n```python\nclass Artwork(models.Model):\n    title = models.CharField(max_length=200)\n    artist = models.ForeignKey(User, on_delete=models.CASCADE)\n    license = LicenseField(\n        limit_choices_to={'name__icontains': 'Creative Commons'}\n    )\n```\n\n### Software Projects\n```python\nclass SoftwareProject(models.Model):\n    name = models.CharField(max_length=200)\n    license = LicenseField(\n        limit_choices_to={'name__in': ['MIT', 'GPL', 'Apache']}\n    )\n```\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n### Development Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/SSJenny90/django-content-license.git\ncd django-content-license\n\n# Install dependencies\npoetry install\n\n# Run tests\npoetry run pytest\n\n# Run linting\npoetry run black .\npoetry run pylint licensing/\n```\n\n### Code Quality\n\nWe maintain high code quality standards:\n- 100% test coverage target\n- Type hints for all public APIs\n- Comprehensive documentation\n- Regular security audits\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\n- **Documentation**: Full documentation available at [Read the Docs](https://django-content-license.readthedocs.io)\n- **Issues**: Report bugs at [GitHub Issues](https://github.com/SSJenny90/django-content-license/issues)\n- **Discussion**: Join the discussion at [GitHub Discussions](https://github.com/SSJenny90/django-content-license/discussions)\n\n## Changelog\n\nSee [HISTORY.md](HISTORY.md) for a complete changelog.\n\n## Related Projects\n\n- [django-licenses](https://github.com/example/django-licenses) - Alternative license management\n- [Creative Commons API](https://github.com/creativecommons/cc-licenses) - Official CC license data\n\n---\n\nMade with \u2764\ufe0f by the Django community\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Store license information alongside your Django data models",
    "version": "0.2.3",
    "project_urls": {
        "Homepage": "https://github.com/SamuelJennings/django-content-license"
    },
    "split_keywords": [
        "django",
        " research",
        " science",
        " datasets",
        " research management",
        " open source",
        " open science",
        " fair"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b45432ec406aac6551bfac591f727e4449baefda97182eaf363e3e508b1410f4",
                "md5": "f9b8b7a09ad8f1dea12c7a288ab2d80f",
                "sha256": "f32c834b7cf21c5d12d60927ab03a5ddf4e2660ea37b169a3c076f5be991f42a"
            },
            "downloads": -1,
            "filename": "django_content_license-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f9b8b7a09ad8f1dea12c7a288ab2d80f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 25162,
            "upload_time": "2025-08-27T16:00:03",
            "upload_time_iso_8601": "2025-08-27T16:00:03.526964Z",
            "url": "https://files.pythonhosted.org/packages/b4/54/32ec406aac6551bfac591f727e4449baefda97182eaf363e3e508b1410f4/django_content_license-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "03c850ae6bfa6be8f1577a6f231cb97fbda0a3b252fbdd50c0eefdd1e7139d9e",
                "md5": "58d859f5bc62deca4d752995c73e84c3",
                "sha256": "2b938ca030270fe8236872bb195571d3b24721b9d68e410d681a9ee5b74cc03c"
            },
            "downloads": -1,
            "filename": "django_content_license-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "58d859f5bc62deca4d752995c73e84c3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 27893,
            "upload_time": "2025-08-27T16:00:04",
            "upload_time_iso_8601": "2025-08-27T16:00:04.857369Z",
            "url": "https://files.pythonhosted.org/packages/03/c8/50ae6bfa6be8f1577a6f231cb97fbda0a3b252fbdd50c0eefdd1e7139d9e/django_content_license-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-27 16:00:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SamuelJennings",
    "github_project": "django-content-license",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "asgiref",
            "specs": [
                [
                    "==",
                    "3.9.1"
                ]
            ]
        },
        {
            "name": "astroid",
            "specs": [
                [
                    "==",
                    "3.3.11"
                ]
            ]
        },
        {
            "name": "asttokens",
            "specs": [
                [
                    "==",
                    "3.0.0"
                ]
            ]
        },
        {
            "name": "black",
            "specs": [
                [
                    "==",
                    "23.12.1"
                ]
            ]
        },
        {
            "name": "cachetools",
            "specs": [
                [
                    "==",
                    "6.2.0"
                ]
            ]
        },
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2025.8.3"
                ]
            ]
        },
        {
            "name": "cfgv",
            "specs": [
                [
                    "==",
                    "3.4.0"
                ]
            ]
        },
        {
            "name": "chardet",
            "specs": [
                [
                    "==",
                    "5.2.0"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "3.4.3"
                ]
            ]
        },
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "8.2.1"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": [
                [
                    "==",
                    "0.4.6"
                ]
            ]
        },
        {
            "name": "coverage",
            "specs": [
                [
                    "==",
                    "7.10.5"
                ]
            ]
        },
        {
            "name": "coverage",
            "specs": [
                [
                    "==",
                    "7.10.5"
                ]
            ]
        },
        {
            "name": "cssbeautifier",
            "specs": [
                [
                    "==",
                    "1.15.4"
                ]
            ]
        },
        {
            "name": "decorator",
            "specs": [
                [
                    "==",
                    "5.2.1"
                ]
            ]
        },
        {
            "name": "deptry",
            "specs": [
                [
                    "==",
                    "0.8.0"
                ]
            ]
        },
        {
            "name": "dill",
            "specs": [
                [
                    "==",
                    "0.4.0"
                ]
            ]
        },
        {
            "name": "distlib",
            "specs": [
                [
                    "==",
                    "0.4.0"
                ]
            ]
        },
        {
            "name": "django-coverage-plugin",
            "specs": [
                [
                    "==",
                    "3.1.1"
                ]
            ]
        },
        {
            "name": "django-debug-toolbar-template-profiler",
            "specs": [
                [
                    "==",
                    "2.1.0"
                ]
            ]
        },
        {
            "name": "django-debug-toolbar",
            "specs": [
                [
                    "==",
                    "6.0.0"
                ]
            ]
        },
        {
            "name": "django-extensions",
            "specs": [
                [
                    "==",
                    "4.1"
                ]
            ]
        },
        {
            "name": "django-model-info",
            "specs": [
                [
                    "==",
                    "2024.11.5"
                ]
            ]
        },
        {
            "name": "django-stubs-ext",
            "specs": [
                [
                    "==",
                    "5.2.2"
                ]
            ]
        },
        {
            "name": "django-stubs",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "django",
            "specs": [
                [
                    "==",
                    "5.2.5"
                ]
            ]
        },
        {
            "name": "djangorestframework-stubs",
            "specs": [
                [
                    "==",
                    "3.14.0"
                ]
            ]
        },
        {
            "name": "djlint",
            "specs": [
                [
                    "==",
                    "1.36.4"
                ]
            ]
        },
        {
            "name": "editorconfig",
            "specs": [
                [
                    "==",
                    "0.17.1"
                ]
            ]
        },
        {
            "name": "exceptiongroup",
            "specs": [
                [
                    "==",
                    "1.3.0"
                ]
            ]
        },
        {
            "name": "executing",
            "specs": [
                [
                    "==",
                    "2.2.0"
                ]
            ]
        },
        {
            "name": "factory-boy",
            "specs": [
                [
                    "==",
                    "3.3.3"
                ]
            ]
        },
        {
            "name": "fairdm-dev-tools",
            "specs": []
        },
        {
            "name": "faker",
            "specs": [
                [
                    "==",
                    "37.6.0"
                ]
            ]
        },
        {
            "name": "filelock",
            "specs": [
                [
                    "==",
                    "3.19.1"
                ]
            ]
        },
        {
            "name": "identify",
            "specs": [
                [
                    "==",
                    "2.6.13"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.10"
                ]
            ]
        },
        {
            "name": "iniconfig",
            "specs": [
                [
                    "==",
                    "2.1.0"
                ]
            ]
        },
        {
            "name": "invoke",
            "specs": [
                [
                    "==",
                    "2.2.0"
                ]
            ]
        },
        {
            "name": "ipython",
            "specs": [
                [
                    "==",
                    "8.37.0"
                ]
            ]
        },
        {
            "name": "isort",
            "specs": [
                [
                    "==",
                    "6.0.1"
                ]
            ]
        },
        {
            "name": "jedi",
            "specs": [
                [
                    "==",
                    "0.19.2"
                ]
            ]
        },
        {
            "name": "jsbeautifier",
            "specs": [
                [
                    "==",
                    "1.15.4"
                ]
            ]
        },
        {
            "name": "json5",
            "specs": [
                [
                    "==",
                    "0.12.1"
                ]
            ]
        },
        {
            "name": "markdown-it-py",
            "specs": [
                [
                    "==",
                    "4.0.0"
                ]
            ]
        },
        {
            "name": "matplotlib-inline",
            "specs": [
                [
                    "==",
                    "0.1.7"
                ]
            ]
        },
        {
            "name": "mccabe",
            "specs": [
                [
                    "==",
                    "0.7.0"
                ]
            ]
        },
        {
            "name": "mdurl",
            "specs": [
                [
                    "==",
                    "0.1.2"
                ]
            ]
        },
        {
            "name": "mypy-extensions",
            "specs": [
                [
                    "==",
                    "1.1.0"
                ]
            ]
        },
        {
            "name": "mypy",
            "specs": [
                [
                    "==",
                    "1.17.1"
                ]
            ]
        },
        {
            "name": "networkx",
            "specs": [
                [
                    "==",
                    "3.4.2"
                ]
            ]
        },
        {
            "name": "nodeenv",
            "specs": [
                [
                    "==",
                    "1.9.1"
                ]
            ]
        },
        {
            "name": "packaging",
            "specs": [
                [
                    "==",
                    "25.0"
                ]
            ]
        },
        {
            "name": "parso",
            "specs": [
                [
                    "==",
                    "0.8.5"
                ]
            ]
        },
        {
            "name": "pathspec",
            "specs": [
                [
                    "==",
                    "0.12.1"
                ]
            ]
        },
        {
            "name": "pexpect",
            "specs": [
                [
                    "==",
                    "4.9.0"
                ]
            ]
        },
        {
            "name": "pip-licenses",
            "specs": [
                [
                    "==",
                    "5.0.0"
                ]
            ]
        },
        {
            "name": "platformdirs",
            "specs": [
                [
                    "==",
                    "4.4.0"
                ]
            ]
        },
        {
            "name": "pluggy",
            "specs": [
                [
                    "==",
                    "1.6.0"
                ]
            ]
        },
        {
            "name": "pre-commit",
            "specs": [
                [
                    "==",
                    "3.8.0"
                ]
            ]
        },
        {
            "name": "prettytable",
            "specs": [
                [
                    "==",
                    "3.16.0"
                ]
            ]
        },
        {
            "name": "prompt-toolkit",
            "specs": [
                [
                    "==",
                    "3.0.52"
                ]
            ]
        },
        {
            "name": "ptyprocess",
            "specs": [
                [
                    "==",
                    "0.7.0"
                ]
            ]
        },
        {
            "name": "pure-eval",
            "specs": [
                [
                    "==",
                    "0.2.3"
                ]
            ]
        },
        {
            "name": "pydot",
            "specs": [
                [
                    "==",
                    "4.0.1"
                ]
            ]
        },
        {
            "name": "pygments",
            "specs": [
                [
                    "==",
                    "2.19.2"
                ]
            ]
        },
        {
            "name": "pylint-celery",
            "specs": [
                [
                    "==",
                    "0.3"
                ]
            ]
        },
        {
            "name": "pylint-django",
            "specs": [
                [
                    "==",
                    "2.6.1"
                ]
            ]
        },
        {
            "name": "pylint-plugin-utils",
            "specs": [
                [
                    "==",
                    "0.9.0"
                ]
            ]
        },
        {
            "name": "pylint",
            "specs": [
                [
                    "==",
                    "3.3.8"
                ]
            ]
        },
        {
            "name": "pyparsing",
            "specs": [
                [
                    "==",
                    "3.2.3"
                ]
            ]
        },
        {
            "name": "pyproject-api",
            "specs": [
                [
                    "==",
                    "1.9.1"
                ]
            ]
        },
        {
            "name": "pytest-cov",
            "specs": [
                [
                    "==",
                    "4.1.0"
                ]
            ]
        },
        {
            "name": "pytest-django",
            "specs": [
                [
                    "==",
                    "4.11.1"
                ]
            ]
        },
        {
            "name": "pytest-env",
            "specs": [
                [
                    "==",
                    "1.1.3"
                ]
            ]
        },
        {
            "name": "pytest-sugar",
            "specs": [
                [
                    "==",
                    "0.9.7"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "7.4.4"
                ]
            ]
        },
        {
            "name": "pyyaml",
            "specs": [
                [
                    "==",
                    "6.0.2"
                ]
            ]
        },
        {
            "name": "regex",
            "specs": [
                [
                    "==",
                    "2025.7.34"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.32.5"
                ]
            ]
        },
        {
            "name": "rich",
            "specs": [
                [
                    "==",
                    "14.1.0"
                ]
            ]
        },
        {
            "name": "ruff",
            "specs": [
                [
                    "==",
                    "0.12.10"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.17.0"
                ]
            ]
        },
        {
            "name": "sqlparse",
            "specs": [
                [
                    "==",
                    "0.5.3"
                ]
            ]
        },
        {
            "name": "stack-data",
            "specs": [
                [
                    "==",
                    "0.6.3"
                ]
            ]
        },
        {
            "name": "termcolor",
            "specs": [
                [
                    "==",
                    "3.1.0"
                ]
            ]
        },
        {
            "name": "tomli",
            "specs": [
                [
                    "==",
                    "2.2.1"
                ]
            ]
        },
        {
            "name": "tomlkit",
            "specs": [
                [
                    "==",
                    "0.13.3"
                ]
            ]
        },
        {
            "name": "tox",
            "specs": [
                [
                    "==",
                    "4.28.4"
                ]
            ]
        },
        {
            "name": "tqdm",
            "specs": [
                [
                    "==",
                    "4.67.1"
                ]
            ]
        },
        {
            "name": "traitlets",
            "specs": [
                [
                    "==",
                    "5.14.3"
                ]
            ]
        },
        {
            "name": "types-python-dateutil",
            "specs": [
                [
                    "==",
                    "2.9.0.20250822"
                ]
            ]
        },
        {
            "name": "types-pytz",
            "specs": [
                [
                    "==",
                    "2025.2.0.20250809"
                ]
            ]
        },
        {
            "name": "types-pyyaml",
            "specs": [
                [
                    "==",
                    "6.0.12.20250822"
                ]
            ]
        },
        {
            "name": "types-requests",
            "specs": [
                [
                    "==",
                    "2.32.4.20250809"
                ]
            ]
        },
        {
            "name": "typing-extensions",
            "specs": [
                [
                    "==",
                    "4.15.0"
                ]
            ]
        },
        {
            "name": "tzdata",
            "specs": [
                [
                    "==",
                    "2025.2"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.5.0"
                ]
            ]
        },
        {
            "name": "virtualenv",
            "specs": [
                [
                    "==",
                    "20.34.0"
                ]
            ]
        },
        {
            "name": "wcwidth",
            "specs": [
                [
                    "==",
                    "0.2.13"
                ]
            ]
        },
        {
            "name": "wrapt",
            "specs": [
                [
                    "==",
                    "1.17.3"
                ]
            ]
        }
    ],
    "lcname": "django-content-license"
}
        
Elapsed time: 2.27260s