Skip to main content

Pluggable, configurable, pastebin HTTP REST API

PyPI PyPI - License PyPI - Python Version Coverage Build Status Documentation Status

django-paste is a simple Django pluggable app of a code pasting and highlighting HTTP REST API, written using Django REST framework. It supports the CRUD operations on source code snippets and uses any existing user authentication system. Syntax highlighting is powered by Pygments.

Installation

The following Python versions are supported:

  • CPython: 3.6, 3.7, 3.8, 3.9

  • PyPy: 3.6

Django:

  • 2.0, 2.1, 2.2

  • 3.0, 3.1

  • Install via pip:

    $ pip install django-paste
  • Add it to your INSTALLED_APPS:

    INSTALLED_APPS = [
        # ...
        'paste.apps.PasteConfig',
    ]
  • Register the app’s URLs under a path of your choice:

    urlpatterns = [
        # ...
        path('some-path/', include('paste.urls')),
    ]

    where 'some-path/' could be any URL.

  • Optionally, configure the app settings.

  • Generate and run the database migrations:

    $ python manage.py makemigrations paste
    $ python manage.py migrate

Usage

You can find the description of the app’s endpoints and snippet fields in the documentation. You can also manage snippets at the Django admin site.

License

Distributed under the MIT License.

Release files for django-paste 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-paste 1.1.3
File Size Uploaded
django-paste-1.1.3.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-paste 1.1.3
File Interpreter ABI Platform
django_paste-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 25.4 kB

Release files / django-paste-1.1.3.tar.gz

Download URL django-paste-1.1.3.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8821855564d1ed7424d007756718c93a804822dee221a8c2543a800a739ba542
BLAKE2b-256 checksum
How to use checksums
999cb602bccecce840a1bf8bb9497b058b2dcd36a0f1c604c02b4a1bb61d1951
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / django_paste-1.1.3-py3-none-any.whl

Download URL django_paste-1.1.3-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6db5b18fa1c0435956b15ae98864d474b62fd8be9efb747df00fd106cb85c56d
BLAKE2b-256 checksum
How to use checksums
7abaf19539b6a2fda6721cf5bfa578aa004aacb385c9ad3e05a8547119384f43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page