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:

  • 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.1.tar.gz (18.7 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.1-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spider_core_x-0.0.1.tar.gz
  • Upload date:
  • Size: 18.7 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.1.tar.gz
Algorithm Hash digest
SHA256 018e632adde2ccc0a675437f331edc4fef2c5c1590775ba04edb685ddb71f269
MD5 7f5e116fc132b4084de8dae87a743e1e
BLAKE2b-256 e8c097163733a359cd149fcab9cc64aac2206c842427775edd444bb59e3cab89

See more details on using hashes here.

Provenance

The following attestation bundles were made for spider_core_x-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: spider_core_x-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7296416ff0e54133c285bb3bd6f6f951ab840dcbd584a799dfe56668326b36a
MD5 66488aac91fb87a1c46e5a54a7089018
BLAKE2b-256 d5d85037eba22a63694f99f8f5e1da51d285584f329ca9828b4abd18dce172a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for spider_core_x-0.0.1-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