Minimal Chocolatey-compatible NuGet server in a Django app.
Project description
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
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')),
]
A DELETE
call to /api/v2/package/<id>/<version>
will be denied even with authentication unless
ALLOW_PACKAGE_DELETION
is set to True
.
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.
Supported commands
choco install
choco push
choco search
Add 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.
Project details
Release history Release notifications | RSS feed
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.10.tar.gz
(14.9 kB
view hashes)
Built Distribution
minchoc-0.0.10-py3-none-any.whl
(16.7 kB
view hashes)