Skip to main content

Minimal Chocolatey-compatible NuGet server in a Django app.

Project description

minchoc

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

@Tatsh Buy Me A Coffee Libera.Chat Mastodon Follow Patreon

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.2.0.tar.gz (22.4 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.2.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minchoc-0.2.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for minchoc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 54f9c0b7ddb925ccebea1c3f951bdaacb5e77c776471ad005c143fbd7117b570
MD5 063bb12811c89ba26ecd425e3a51aae9
BLAKE2b-256 1f7ced230ded726ef65fa24bf1a6b87224748d796a540496c1b8b77feebf8239

See more details on using hashes here.

Provenance

The following attestation bundles were made for minchoc-0.2.0.tar.gz:

Publisher: publish.yml on Tatsh/minchoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: minchoc-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for minchoc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31b8a1c3848c9b757f57ebfd667ff6ae4c03fa3b1900cad50df70fc44e2861c6
MD5 160aa4dc5f852cbed83b4544fe71df31
BLAKE2b-256 b3d29697a43e4c69e9b750a528522ed8fda7203130fb516ddd60a5e265fd0f49

See more details on using hashes here.

Provenance

The following attestation bundles were made for minchoc-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Tatsh/minchoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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