Skip to main content

Managing projects in a research context.

Project description

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

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

huscy_projects-1.12.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huscy_projects-1.12.0-py2.py3-none-any.whl (24.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file huscy_projects-1.12.0.tar.gz.

File metadata

  • Download URL: huscy_projects-1.12.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for huscy_projects-1.12.0.tar.gz
Algorithm Hash digest
SHA256 58403f6106d22cc714c2a0dfe76aefcb46c70a45bb4425fc8beecd6d549b90a4
MD5 8ce9fa393699d74c721f44f8bf6dbfdd
BLAKE2b-256 063d564ca14843592a1054111dcc7e5ca211d839ed93b473dafb95a033b0fae3

See more details on using hashes here.

File details

Details for the file huscy_projects-1.12.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for huscy_projects-1.12.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0de037203ad5f09b078d19882ce7efbd29c2faf52c9a6c17bb899c9aba565a88
MD5 250cb74d20a59a0c678f087653c95bc7
BLAKE2b-256 681418c5c4c02b3aedce372a57105e6f1dc0ab5dcee3f4123a35bf269c8f1763

See more details on using hashes here.

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