Skip to main content

Minimal Chocolatey-compatible NuGet server in a Django app.

Project description

minchoc

QA Tests Coverage Status Documentation Status PyPI - Version GitHub tag (with filter) GitHub GitHub commits since latest release (by SemVer including pre-releases)

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('', include('minchoc.urls')) to your root urls.py. Example:

from django.urls import include, path
urlpatterns = [
    path('admin/', admin.site.urls),
    path('', 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.0.11.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

minchoc-0.0.11-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minchoc-0.0.11.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.6.2-gentoo-limelight

File hashes

Hashes for minchoc-0.0.11.tar.gz
Algorithm Hash digest
SHA256 7dbcbb220b6069972ca5805553753425fd91e8f4f8acf6ef11ac0674b33a0364
MD5 46ae580ee2b77b7b9f9345af9425223d
BLAKE2b-256 29598636aa69d0074fa18e5a4d15ea99674a65311e160085fd31ab23f1f9fd9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minchoc-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.6.2-gentoo-limelight

File hashes

Hashes for minchoc-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 da45d1d8a85741be967581043bae37dded91ca166bcfa85a31487c73659ce32b
MD5 35b99373c57b00bd77336891f199937c
BLAKE2b-256 e178f741cad0ad61527074cd7bb163316479d38b95b4e4e6ee756c0a0268dfa3

See more details on using hashes here.

Supported by

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