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.2

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

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.2.tar.gz (8.4 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.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: square_file_store-2.3.2.tar.gz
  • Upload date:
  • Size: 8.4 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.2.tar.gz
Algorithm Hash digest
SHA256 946e7fefa3c7e95b418ebecbd101afb846e366f967415e42a6cb193c51c62c6e
MD5 f0bad933a2f042b51997839c5d2bb792
BLAKE2b-256 746049dee4813a5a60b9a939f32a3976f56739969d5f15ac643f2b32d36bc01f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for square_file_store-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba6298802b3916eed38f0f76b1298d921bddb7cbb3b54b60b3f63eec23bfdebf
MD5 4f4dafdb4637721fd2149ad4a6d93113
BLAKE2b-256 b8a107f072a1761b2c0d32bfc37bb83f7f181f80d3154b9d38becc9bbdd90afe

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