Skip to main content

huscy.projects

PyPi Version PyPi Status PyPI Downloads PyPI License Python Versions Django Versions Coverage Status

Requirements

  • Python 3.8+
  • A supported version of Django

Tox tests on Django versions 4.2, 5.0 and 5.1.

Installation

To install husy.projects simply run:

pip install huscy.projects

Add huscy.projects and further required apps to INSTALLED_APPS in your settings module:

INSTALLED_APPS = (
	...
	'guardian',
	'rest_framework',

	'huscy.projects',
)

Add Django Guardian ObjectPermissionBackend to AUTHENTICATION_BACKENDS

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend',
)

Hook the urls from huscy.projects into your urls.py:

urlpatterns = [
    ...
	path('/api/', include('huscy.projects.urls')),
]

Create huscy.projects database tables by running:

python manage.py migrate

Development

Install PostgreSQL and create a database user called huscy and a database called huscy.

sudo -u postgres createdb huscy
sudo -u postgres createuser -d huscy
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE huscy TO huscy;"
sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123';"

Checking out the repository start your virtual environment (if necessary).

Install all development and test dependencies:

make install

Create Database tables:

make migrate

Run tests to see if everything works fine:

make test

Metadata

Release files for huscy.projects 1.12.0

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

Source distribution (sdist)

Source distribution for huscy.projects 1.12.0
File Size Uploaded
huscy_projects-1.12.0.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for huscy.projects 1.12.0
File Interpreter ABI Platform
huscy_projects-1.12.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 43.2 kB

Release files / huscy_projects-1.12.0.tar.gz

Download URL huscy_projects-1.12.0.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
58403f6106d22cc714c2a0dfe76aefcb46c70a45bb4425fc8beecd6d549b90a4
BLAKE2b-256 checksum
How to use checksums
063d564ca14843592a1054111dcc7e5ca211d839ed93b473dafb95a033b0fae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / huscy_projects-1.12.0-py2.py3-none-any.whl

Download URL huscy_projects-1.12.0-py2.py3-none-any.whl
Size 24.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0de037203ad5f09b078d19882ce7efbd29c2faf52c9a6c17bb899c9aba565a88
BLAKE2b-256 checksum
How to use checksums
681418c5c4c02b3aedce372a57105e6f1dc0ab5dcee3f4123a35bf269c8f1763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release history Release notifications | RSS feed

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