Skip to main content

common business layer for my personal server.

Project description

square_administration

about

administration business layer for my personal server.

Installation

pip install square_administration

env

  • python>=3.12.0

changelog

v3.3.0

  • authentication
    • add new endpoint -> register_login_google_v0.
    • add new endpoint -> reset_password_and_login_using_backup_code_v0.
    • add new endpoint -> reset_password_and_login_using_reset_email_code_v0.

v3.2.2

  • remove config.ini and config.testing.ini from version control.

v3.2.1

  • testing
    • update get_patched_configuration and create_client_and_cleanup to be session scoped.
  • env
    • add ALLOW_ORIGINS

v3.2.0

  • move global_int_app_id getting logic from configuration.py to utils->common
  • env
    • add DB_IP, DB_PORT, DB_USERNAME, DB_PASSWORD
    • add config.testing.ini
    • file path reading through os.path.join method.
  • testing
    • add conftest file to create and cleanup test database, also to patch config file.
    • update existing tests to use the new fixtures.

v3.1.1

  • bump square_logger to 2.0.0

v3.1.0

  • add pytest as dependency.
  • add dummy test case.

v3.0.2

  • update logic to get usernames for non-anonymous greetings in get_all_greetings_v0.

v3.0.1

  • add logging decorator to all functions.

v3.0.0

  • add new parameter -> password in authentication -> remove_app_for_self_v0.

v2.4.0

  • auto docker image build github action.

v2.3.0

  • env
    • add new variable COOKIE_DOMAIN.
  • util
    • add is_https.
  • authentication
    • add domain, exp_time, secure and http_only flags for cookies generated in login_username_v0, register_username_v0.

v2.2.1

  • authentication
    • add validation for refresh token app id in logout_v0, generate_access_token_v0.

v2.2.0

  • authentication
    • logout_v0, generate_access_token_v0 remove refresh token from request header and accept in cookie.

v2.1.0

  • add authentication -> logout_v0, generate_access_token_v0.

v2.0.0

  • remove refresh token from response body and send in cookies.

v1.2.1

  • fix bug in core -> get_all_greetings_v0, now sending full response instead of only main.

v1.2.0

  • set allow_credentials=True.

v1.1.0

  • add core -> get_all_greetings_v0.

v1.0.0

  • initial implementation.

Feedback is appreciated. Thank you!

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

square_administration-3.3.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

square_administration-3.3.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file square_administration-3.3.0.tar.gz.

File metadata

  • Download URL: square_administration-3.3.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for square_administration-3.3.0.tar.gz
Algorithm Hash digest
SHA256 becc5b29be7b30969d3de629d9d90cd904ca7d87155e7caa2367f7b7466de1e8
MD5 15ddb9de3bc0ccb665b242cfec98bcc7
BLAKE2b-256 1d5371c4fe7e24790d57a4ee68fba9b51ad361f8f0f7aefa1245e6a833c48e69

See more details on using hashes here.

File details

Details for the file square_administration-3.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for square_administration-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5131b8d7e9c934da179b290810442e9baabfa88c7f1c43eb6f1b62e8478130de
MD5 eb71c72e6aca543dea2fb1b0100973b7
BLAKE2b-256 5783e4500633e903da23fa26cbb46e1575f42a4c4e07cab65c5c9e5b7bacf8d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page