Skip to main content

Managing attributes for subjects in a human research context.

Project description

huscy.attributes

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

Huscy is a free open-source software solution for managing study participants in the context of human sciences. The software is deliberately implemented in a generic manner to appeal to a wide user base, while considering all relevant aspects of data protection. The strictly modular software architecture allows for easy integration of new requirements, enabling the software to be customized to individual needs at any time.

Requirements

  • Python 3.8+
  • A supported version of Django

In this project the Django versions 4.2 and 5.0 are tested with tox.

Installation

To install husy.attributes simply run:

pip install huscy.subjects

Add required apps to INSTALLED_APPS in your settings.py:

INSTALLED_APPS = (
	...

    'guardian',
    'rest_framework',
    'reversion',

    'huscy.attributes.apps.HuscyApp',
    'huscy.pseudonyms.apps.HuscyApp',
    'huscy.subjects.apps.HuscyApp',
)

Additional apps may need to be added (e.g., django_countries and phonenumber_field) if you want to fully utilize the huscy.subjects app.

Hook the urls from this app into your global urls.py:

urlpatterns = [
	...
	path('', include('huscy.attributes.urls')),
]

Create 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.attributes-1.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

huscy.attributes-1.0.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file huscy.attributes-1.0.1.tar.gz.

File metadata

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

File hashes

Hashes for huscy.attributes-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5300131e2a38e40baee354cf341915735d19f2a4bfb0d43d64e89bc084127e9a
MD5 edee843e15e6a7046ff6b32d7ddb2cf2
BLAKE2b-256 6aaa9866d10aa4b4517229852fc3a28b56e6b37c74310640c3f5bed1f381123c

See more details on using hashes here.

File details

Details for the file huscy.attributes-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for huscy.attributes-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89f534d5cf8e47266d86f1c0275e8e4595b1b325e80c555fdd6563581d9ddc7f
MD5 26fe2f3648a0d93487d07ed479996628
BLAKE2b-256 951c6001e655a072045ab606aac9178b942f59cb49559e2626bc170fb93a99a9

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