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.6+
  • A supported version of Django

Tox tests on Django versions 3.2 and 4.0.

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

Uploaded Source

Built Distribution

huscy.users-1.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: huscy.users-1.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for huscy.users-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8c08a123a9e9b09a04a0521b6381d09f7f96accb729a5913a0a3d0cf5d91e8b0
MD5 c73533b35e22638fc285bcbd4ddd39e8
BLAKE2b-256 c47b4ca3069e0a2b822fbe4cdc25fa20edeabc4d402dc5d9c501aa70f6820885

See more details on using hashes here.

File details

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

File metadata

  • Download URL: huscy.users-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for huscy.users-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91aaa39e2493b98d8b7911b8f1f7454b05a330934fc721317ffb469ba5ddaca8
MD5 113daf2e9845f05bcb142794c6c8f0a8
BLAKE2b-256 75bc1ca6043a682905955928bde17c176a11db485338516b29404518b40c7a79

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