https://github.com/beda-software/aidbox-file-uploader
Aidbox application that provides custom operation to download/upload files via signed links
https://github.com/beda-software/aidbox-file-uploader
Last synced: 8 months ago
JSON representation
Aidbox application that provides custom operation to download/upload files via signed links
- Host: GitHub
- URL: https://github.com/beda-software/aidbox-file-uploader
- Owner: beda-software
- License: mit
- Created: 2024-09-26T00:20:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-02T18:51:16.000Z (over 1 year ago)
- Last Synced: 2025-01-10T02:18:55.232Z (over 1 year ago)
- Language: Python
- Size: 124 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aidbox-python-sdk-example
# Development
## Local environment setup
1. Install pyenv and poetry globally
2. Install python3.12 python globally using pyenv
3. Inside the app directory, run `poetry env use /path/to/python312`
4. Run `poetry install`
5. Run `poetry shell` to activate virtual environment
6. Run `autohooks activate` to activate git hooks
## Local deployment
0. Run Aidbox anywhere but make `host.docker.internal` available from the Aidbox to access the host machine
1. Run `cp .env.example .env`
2. `docker-compose up`
## Testing
1. Run `cp .env.tests.local.example .env.tests.local`
2. Put your dev aidbox license key into `AIDBOX_LICENSE_TEST` in `.env.tests.local`
3. Run `docker compose -f compose.test-env.yaml build` at the first time and every time once dependencies are updated/added
4. Run `./run_test.sh`
5. You can kill the containers when complete to work with tests by run:
`docker compose -f compose.test-env.yaml down`
## IDE setup
Strongly recommended to use ruff and mypy plugins for IDE