Skip to main content

SmoothGlue Django Core

Overview

SmoothGlue Django Core provides a robust foundation for creating extendable and secure application features, optimized for highly regulated environments. This project includes reusable Django apps designed to streamline development for applications requiring stringent security and compliance measures.

Key Features

  • Abstract Models: Includes abstract models like AuditModel and TimeAuditModel for audit trail functionality in your models.
  • Reusable Serializers: A set of base serializers for consistent API development.
  • Custom User Model: Extensible user model adaptable to various authentication requirements.
  • Environment-specific Configuration: Designed for easy configuration in different environments (development, staging, production).

Installation

Prerequisites

  • Python 3.12+
  • Django 4.2+
  • Django REST Framework 3.15.2+

Install SmoothGlue Django Core From PyPI (Official Use)

  1. Use pip and the following command inside the Django project:

    pip install smoothglue_django_core
    
  2. Enable Smoothglue Django Core's apps in your settings.py:

INSTALLED_APPS = [
    # ... other installed apps ...
    'smoothglue.core',
    'smoothglue.authentication',
    'smoothglue.tracker',
    # ... other installed apps ...
]
  1. Database Migrations:

Run the migrations to create the necessary database tables:

python manage.py migrate
  1. Run the development server to confirm the project continues to work.

API Usage

This package exposes several API endpoints to manage users, organizations, and other related data.

Authentication

This package uses JWT-based authentication. The JWT is decoded from the Authorization or Jwt header of the request. In a development environment, ENABLE_SINGLE_USER_MODE can be set to True to bypass JWT authentication and use a default "UnknownUser".

Endpoints

Users

  • GET /users/: Retrieves a list of all users.

  • POST /users/: Creates a new user.

  • GET /users/{id}/: Retrieves a specific user by their ID.

  • PUT /users/{id}/: Updates a specific user.

  • PATCH /users/{id}/: Partially updates a user.

  • DELETE /users/{id}/: Deletes a user.

Organizations

  • GET /organizations/: Retrieves a list of all organizations.

  • POST /organizations/: Creates a new organization.

  • GET /organizations/{id}/: Retrieves a specific organization by its ID.

  • PUT /organizations/{id}/: Updates an organization.

  • PATCH /organizations/{id}/: Partially updates an organization.

  • DELETE /organizations/{id}/: Deletes an organization.

Organization Members

  • GET /org-members/: Retrieves a list of all organization members.

Organization Categories

  • GET /org-categories/: Retrieves a list of all organization categories.

  • POST /org-categories/: Creates a new organization category.

  • GET /org-categories/{id}/: Retrieves a specific organization category by its ID.

  • PUT /org-categories/{id}/: Updates an organization category.

  • PATCH /org-categories/{id}/: Partially updates an organization category.

  • DELETE /org-categories/{id}/: Deletes an organization category.

Active User

  • GET /active_user/: Retrieves the currently authenticated user's information.

License

This project is licensed under a Proprietary License. See the LICENSE file for more details.

Metadata

Release files for smoothglue_django_core 1.3.1

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

Source distribution (sdist)

Source distribution for smoothglue_django_core 1.3.1
File Size Uploaded Provenance Actions
smoothglue_django_core-1.3.1.tar.gz 52.0 kB Without provenance Details for smoothglue_django_core-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smoothglue_django_core 1.3.1
File Interpreter ABI Platform Actions
smoothglue_django_core-1.3.1-py3-none-any.whl Python 3 none any Details for smoothglue_django_core-1.3.1-py3-none-any.whl

Total release size: 132.1 kB

Release files / smoothglue_django_core-1.3.1.tar.gz

Download URL smoothglue_django_core-1.3.1.tar.gz
Size 52.0 kB
Tags Source
SHA-256 checksum
How to use checksums
24d1159c065ee7c627ec6e282021e5c0746d3a24fc3da1b9aa32e93fc75398db
BLAKE2b-256 checksum
How to use checksums
289041080fd5505790afee1151d771de69ee8b8b870426449580d3778857d6ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.11 Linux/4.18.0-553.51.1.el8_10.x86_64

Release files / smoothglue_django_core-1.3.1-py3-none-any.whl

Download URL smoothglue_django_core-1.3.1-py3-none-any.whl
Size 80.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9effc5bea50fafe792480800986fcb6b48c0cfdddfb8798595aa629807936ff8
BLAKE2b-256 checksum
How to use checksums
1fa4598c56464e09480574efa49ded4ad3ae3dc658e7f03b27bcb81b4208fe5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.11 Linux/4.18.0-553.51.1.el8_10.x86_64

Security for smoothglue_django_core 1.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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