Metadata-Version: 2.4
Name: square_file_store
Version: 2.3.0
Summary: file storage layer for my personal server.
Home-page: https://github.com/thepmsquare/square_file_store
Author: thePmSquare
Author-email: thepmsquare@gmail.com
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown
Requires-Dist: uvicorn>=0.24.0.post1
Requires-Dist: fastapi>=0.104.1
Requires-Dist: python-multipart>=0.0.6
Requires-Dist: pydantic>=2.5.3
Requires-Dist: pytest>=8.0.0
Requires-Dist: square_logger>=2.0.0
Requires-Dist: square_database_helper>=2.3.0
Requires-Dist: square_commons>=1.2.0
Requires-Dist: square_database_structure>=1.3.3
Requires-Dist: httpx>=0.27.2
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

# square_file_store

## about

file storage layer for my personal server.

## installation

```shell
pip install square_file_store
```

## env

- python>=3.12.0

## changelog

### 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!
