Skip to main content

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, 5.0 and 5.1 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

Metadata

Release files for huscy.attributes 1.1.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.attributes 1.1.0
File Size Uploaded
huscy_attributes-1.1.0.tar.gz 21.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for huscy.attributes 1.1.0
File Interpreter ABI Platform
huscy.attributes-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.3 kB

Release files / huscy_attributes-1.1.0.tar.gz

Download URL huscy_attributes-1.1.0.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1f9070d45c2ff53c7e0f615763c652a65b597413b08c93e1dd5b56f785356f60
BLAKE2b-256 checksum
How to use checksums
73dc1f9c51efa1cb3bab7fc7411e45c8c9691b37beaca8f78032611acf8336b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / huscy.attributes-1.1.0-py3-none-any.whl

Download URL huscy.attributes-1.1.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d0e667c3e04d4d78515fb908554f23677371a6e31e9ba3ee783fdad1279252b
BLAKE2b-256 checksum
How to use checksums
5750d8dea19de691784ae4522b252547f32d5666b91771a03b006b97f8f44a4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5
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