Skip to main content

file storage layer for my personal server.

Project description

square_file_store

about

file storage layer for my personal server.

installation

pip install square_file_store

env

  • python>=3.12.0

changelog

v2.3.1

  • bump square_database_structure to >= 2.5.1
  • switch to hard delete for files for db entries.

v2.3.0

  • env
    • add DB_IP, DB_PORT, DB_USERNAME, DB_PASSWORD
    • add ALLOW_ORIGINS
    • 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.
    • add pytest.yaml to enable pytest in github actions.
    • update existing tests to use the new fixtures.
    • update get_patched_configuration and create_client_and_cleanup to be session scoped.

v2.2.3

  • bump square_logger to 2.0.0

v2.2.2

  • add auto logger decorator to all functions.
  • add logs to errors in all endpoints.

v2.2.1

  • add rollback logic to upload_file/v0.

v2.2.0

  • setup auto docker image build github action.

v2.1.0

  • set allow_credentials=True.

v2.0.0

  • rearrange file structure.
  • add versions to all api endpoints.
  • standard output for json outputs.
  • replace hardcoded column names with variables from square_database_structure.
  • update tests.
  • refactor some code logic.

v1.0.1

  • replace file_purpose with app_id.

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_file_store-2.3.1.tar.gz (8.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_file_store-2.3.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file square_file_store-2.3.1.tar.gz.

File metadata

  • Download URL: square_file_store-2.3.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for square_file_store-2.3.1.tar.gz
Algorithm Hash digest
SHA256 2607f048a371795f51d4d47f2c9a8d2dee59eeb938d4859d1f16430d59193668
MD5 40a82f488bb9a998b0908dc664bc5e11
BLAKE2b-256 159177a2e93394298183e1791f7a63dd9d4240c60dcd53da76f39f724639288d

See more details on using hashes here.

File details

Details for the file square_file_store-2.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for square_file_store-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9cc5df87ff60f9238f12c80df4484d7e7a22a0ccb175541b91584cabcb17786
MD5 c464f101197412bba9c0582c3b8dd7f6
BLAKE2b-256 48e6f791143e92219764eac39569c2907d8656bf389a1fe709c3cb0dc66bddcc

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