Skip to main content

Minimal Chocolatey-compatible NuGet server in a Django app.

Project description

minchoc

Published on Django Packages Python versions PyPI - Version GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) CodeQL QA Tests Coverage Status Documentation Status Django mypy pre-commit pydocstyle pytest Ruff Downloads Stargazers

@Tatsh Mastodon Follow

Minimal Chocolatey-compatible NuGet server in a Django app.

Installation

pip install minchoc

In settings.py, add 'minchoc' to INSTALLED_APPS. Set ALLOW_PACKAGE_DELETION to True if you want to enable this API.

INSTALLED_APPS = ['minchoc']
ALLOW_PACKAGE_DELETION = True

A DELETE call to /api/v2/package/<id>/<version> will be denied even with authentication unless ALLOW_PACKAGE_DELETION is set to True.

Add path('/api/v2/', include('minchoc.urls')) to your root urls.py. Example:

from django.urls import include, path
urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v2/', include('minchoc.urls')),
]

Run ./manage.py migrate or similar to install the database schema.

Notes

When a user is created, a NugetUser is also made. This will contain the API key for pushing. It can be viewed in admin.

Add your source to Chocolatey

As administrator:

choco source add -s 'https://your-host/url-prefix'
choco apikey add -s 'https://your-host/url-prefix' -k 'your-key'

On non-Windows platforms, you can use my pychoco package, which also supports the above commands.

Supported commands

  • choco install
  • choco push
  • choco search

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minchoc-0.1.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minchoc-0.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file minchoc-0.1.0.tar.gz.

File metadata

  • Download URL: minchoc-0.1.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.17.6-gentoo-limelight

File hashes

Hashes for minchoc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f1cd8691269e9e4114bf9e7bfbec3de581447e552237d585ff0beb0c926d09a
MD5 88c71ddb90a5d798863d8c0c09de540e
BLAKE2b-256 c7f5e762aab63c1d7f091d056c809e4cfcf0610985d61fd77298a1921bff2619

See more details on using hashes here.

File details

Details for the file minchoc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: minchoc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Linux/6.17.6-gentoo-limelight

File hashes

Hashes for minchoc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 327361c8b9479764b2cba11093ef22978d9b4f32779a5d27cac324db0890ccf7
MD5 cfe7ea61daa32d85ed8b19c913da52d8
BLAKE2b-256 18ff2bd490c65a983deacd2cdc1b43d31a317988a7bcab6daea3fe7ab59be2bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page