SURF Research Access Management integration for Django
Project description
Django SRAM
SURF Research Access Management integration for Django
Installation
pip install django-sram
Setup
One time template setup should include configuring the docker registry to regularly cleanup old images of the CI/CD pipelines. And you can consider creating protected version tags for software releases:
Once the cleanup policy for docker registry is setup you can uncomment the docker push comment in the .gitlab-ci.yml
file from the docker_build job. This will allow to download minimal docker images with your Python package installed.
Usage
from django_sram import cool_module
cool_module.greeter() # prints "Hello World"
Development
Development environment
To setup and activte the develop environment run source ./setup.sh from within the source directory.
If PyCharm is used, this only needs to be done once. Afterward the Python virtual env can be setup within PyCharm.
Contributing
To contribute, please create a feature branch and a "Draft" merge request. Upon completion, the merge request should be marked as ready and a reviewer should be assigned.
Verify your changes locally and be sure to add tests. Verifying local
changes is done through tox.
pip install tox
With tox the same jobs as run on the CI/CD pipeline can be ran. These include unit tests and linting.
tox
To automatically apply most suggested linting changes execute:
tox -e format
License
This project is licensed under the Apache License Version 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_sram-0.1.0.tar.gz.
File metadata
- Download URL: django_sram-0.1.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6ccf89ce3ab1c697885fa63a7b9bf215f5ae082956de9a4825f89592f3f2737
|
|
| MD5 |
c21c87df7349bb360e0702667c7a1fb5
|
|
| BLAKE2b-256 |
eb632f7ff99d1db1cf2dbf558adddfd7cf718198ec88e2356df96d2ef59d7f24
|
File details
Details for the file django_sram-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_sram-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ae08e18049e04aa2597a8b34ed92b06a1248cf2887e980cd4b82a09ec4fc9aa
|
|
| MD5 |
19bbe3472c1a24d7ec65bc8262ac7e5e
|
|
| BLAKE2b-256 |
d1ca3cfedf90f551acfcdbc616fee41f3fb800e318b8bccaab925eb33cad4e1c
|