Personal tools
Skip to content. | Skip to navigation
Django REST - Access Policy This project brings a declaritive, organized approach to managing access control in Django REST Framework projects. Each ViewSet or function-based view can be assigned an explicit policy for the exposed resource(s). No more digging through views or seralizers to understand access logic -- it's all in one place in a format that less technical stakeholders can understand. If you're familiar with other declaritive access models, such as AWS' IAM, the syntax will be familiar. In short, you can start expressing your access rules like this: class ArticleAccessPolicy(AccessPolicy): statements = [ { "action": ["list", "retrieve"], "principal": "*", "effect": "allow" }, { "action": ["publish", "unpublish"], "principal": ["group:editor"], "effect": "allow" } ] This project has complete test coverage and the base AccessPolicy class is only ~150 lines of co
DRF-extensions is a collection of custom extensions for Django REST Framework
Django REST - FlexFields[ for [Django REST Framework]() is a package designed to provide a common baseline of functionality for dynamically setting fields and nested models within DRF serializers. To remove unneeded fields, you can dynamically set fields,...
Nested resourcesfor the Django Rest Framework
Sane and flexible OpenAPI 3.0 schema generation for Django REST framework. This project has 3 goals: Extract as much schema information from DRF as possible. Provide flexibility to make the schema usable in the real world (not only toy examples). Generate a schema that works well with the most popular client generators. The code is a heavily modified fork of the DRF OpenAPI generator, which is/was lacking all of the below listed features. Features Serializers modelled as components. (arbitrary nesting and recursion supported) @extend_schema decorator for customization of APIView, Viewsets, function-based views, and @action additional parameters request/response serializer override (with status codes) polymorphic responses either manually with PolymorphicProxySerializer helper or via rest_polymorphics PolymorphicSerializer) and more customization options Authentication support (DRF natives included, easily extendable) Custom serializer class support (easily extendable) Ser
dynaconf - Configuration Management for Python. Features Inspired by the 12-factor application guide Settings management (default values, validation, parsing, templating) Protection of sensitive information (passwords/tokens) Multiple file formats toml|yaml|json|ini|py and also customizable loaders. Full support for environment variables to override existing settings (dotenv support included). Optional layered system for multi environments [default, development, testing, production] Built-in support for Hashicorp Vault and Redis as settings and secrets storage. Built-in extensions for Django and Flask web frameworks. CLI for common operations such as init, list, write, validate, export. full docs on https:/dynaconf.com
Install From pypipip install galaxy-importer From sourceClone repo and go into project directoryInstall into environment the local setup.py including its development dependencies:pip install -e .[dev] Run importerRun parsing/validation standalone to view log output and importer result for a build collection artifact file:python -m galaxy_importer.main [collection_artifact_file]View log output...
GitDB is a pure-Python git object database
GnuPG bindings for python. This uses the gpg command.