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 3.2, 4.1 and 4.2.

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.7.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

huscy.projects-1.7.1-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file huscy.projects-1.7.1.tar.gz.

File metadata

  • Download URL: huscy.projects-1.7.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.15

File hashes

Hashes for huscy.projects-1.7.1.tar.gz
Algorithm Hash digest
SHA256 501020620eb88a80116e88c1fbfdf98d7f8fe4cb1fec75a3998e386b2f24f414
MD5 a3a8b3c257becd8458c2ae8ccaf4b5e4
BLAKE2b-256 7f074fc1acc25634707e179940b2a3d989bd670e21f504144a92084e0925f850

See more details on using hashes here.

File details

Details for the file huscy.projects-1.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for huscy.projects-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc81d9af0bacecb5d939035c270525a4d1b859803a0be6bb2a8732d41e47e25b
MD5 38b73b52f4c210d152fcabed258bd7b4
BLAKE2b-256 38258e7bddf2a059c1cdd71fb108174c828848b93112de03110b828a8e90815c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page