Skip to main content

Managing subjects in a human research context.

Project description

huscy.subjects

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

Requirements

  • Python 3.6+
  • A supported version of Django

Tox tests on Django versions 2.2, 3.1 and 3.2.

Installation

To install husy.subjects simply run:

pip install huscy.subjects

Configuration

Add huscy.subjects and further required apps to INSTALLED_APPS in your settings.py:

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

	'huscy.subjects',
)

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

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

Create huscy.subjects 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';"

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

Install 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.subjects-1.0.4.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

huscy.subjects-1.0.4-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file huscy.subjects-1.0.4.tar.gz.

File metadata

  • Download URL: huscy.subjects-1.0.4.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for huscy.subjects-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0d36ddef77ba2e6d8ec9cb29ed729f847480c13a32ac7f9c139552d53a587cc6
MD5 c303aa5be91d3fc697f73dbe28cd0f79
BLAKE2b-256 9bb32e6cec41931d4bf7ecffe8f21c67599f10322bb7604c91db7d00d067284f

See more details on using hashes here.

File details

Details for the file huscy.subjects-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: huscy.subjects-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for huscy.subjects-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b175e1d6279296d915840e800c7e125654170ae688eb26a89ee256ac997b3571
MD5 a879db83942cd1cf9fb12e98547cdd34
BLAKE2b-256 d9716e467a530a803cb0d614ff82e4c5f9e20ddb8c47ed914d366346387963ad

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