Skip to main content

Listing and creating users via REST API

Project description

huscy.users

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

Requirements

  • Python 3.7+
  • A supported version of Django

Tox tests on Django versions 3.2, 4.0 and 4.1.

Installation

To install husy.users simply run:

pip install huscy.users

Configuration

The huscy.users application has to be hooked into the project.

Add huscy.users to INSTALLED_APPS in settings module:

INSTALLED_APPS = (
	...

	'huscy.users',
)

Development

After checking out the repository you should activate any virtual environment. Install all development and test dependencies:

make install

Create database tables:

python manage.py migrate

We assume you're having a running postgres database with a user huscy and a database also called huscy. You can easily create them by running

sudo -u postgres createdb huscy
sudo -u postgres createuser -d huscy
sudo -u postgres psql -c "ALTER USER huscy WITH PASSWORD '123';"
sudo -u postgres psql -c "ALTER DATABASE huscy OWNER TO huscy;"

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.users-1.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

huscy.users-1.2.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file huscy.users-1.2.0.tar.gz.

File metadata

  • Download URL: huscy.users-1.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for huscy.users-1.2.0.tar.gz
Algorithm Hash digest
SHA256 87fd8915b8c6a822a5554346d1b398e57d7099791153c13128922d1f6378cf68
MD5 61797cb4a7affcacd59e19573a68d343
BLAKE2b-256 bf1a8635b130be0c7673f255b4db92e82066d7a8e9e87503cd2030a89bfcab48

See more details on using hashes here.

File details

Details for the file huscy.users-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: huscy.users-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for huscy.users-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d228534fc32260ce7158fe40859dc6fce7b5a4aae7c07b37f17047ff886ac3b
MD5 65de66184c40a22ffdb6f74035fb4b71
BLAKE2b-256 7f5d147549a394001408c145e227d3aa4437102cd8ef786916a8e87616764dce

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