Skip to main content

Reusable Django and DRF abstractions for models, admin, and API views.

Project description

spider-core

spider-core is a reusable Django/DRF helper library extracted from the Spiderkube admin project. It provides:

  • Django model mixins and base classes
  • DRF API abstractions for CRUD and list views
  • serializer helpers
  • admin base classes
  • reusable decorators and exceptions
  • caching helpers
  • secure storage helpers
  • JSON serializer utilities
  • field validators

Installation

Install the package locally from the repository root:

pip install -e .

Install with optional admin helpers:

pip install -e .[admin]

Install with optional storage helpers:

pip install -e .[storage]

Install directly from GitHub:

pip install git+https://github.com/xooshe/spider-core.git

Install from PyPI:

pip install spider-core-x

Install with optional admin helpers from PyPI:

pip install spider-core-x[admin]

Install with optional storage helpers from PyPI:

pip install spider-core-x[storage]

CI / Publishing

A GitHub Actions workflow is included at .github/workflows/publish.yml. It:

  • runs unit tests on push and pull request
  • builds the package on push and pull request
  • publishes to PyPI when a v* tag is pushed

No secrets are needed—the workflow uses OIDC trusted publishing for PyPI authentication.

To publish a new version:

git tag v0.1.1
git push origin v0.1.1

The workflow will automatically build and publish spider-core-x to PyPI.

Usage

from spider.api import ModelGetApi
from spider.models import AbstractBaseModel
from spider.serializers import ModelSerializer
from spider.decorators import api_response

Package structure

  • spider/api
  • spider/admin
  • spider/models
  • spider/serializers
  • spider/decorators
  • spider/exeptions
  • spider/storage
  • spider/utils
  • spider/validators

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

spider_core_x-0.0.2.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

spider_core_x-0.0.2-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file spider_core_x-0.0.2.tar.gz.

File metadata

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

File hashes

Hashes for spider_core_x-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fa48ab4c96ffb0e62b4b73b1a014e0dcff994be7f396f70a2bea6e563d3b887f
MD5 d7140601cd6e9fccbcfa92cecd56c5d4
BLAKE2b-256 d687c6aa3f31f65090d63f62a87b83ad733309548a9dd58dcba29a2b63c24cfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for spider_core_x-0.0.2.tar.gz:

Publisher: publish.yml on xooshe/spider-core

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

File details

Details for the file spider_core_x-0.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for spider_core_x-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e5c7693a4901cc5f54360ea86bcf1fa0c5fdf00f312d45ad535019e6275e852
MD5 c801f641108dc35621ca7ff9067daadc
BLAKE2b-256 23e0e2a0ae9f6df487ce17de7e3a286da33a14c791ea57a2bf3666d2f41325a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for spider_core_x-0.0.2-py3-none-any.whl:

Publisher: publish.yml on xooshe/spider-core

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