Commits on Source (9)
-
Daniel Schultz authored
We're going to need to use a database to store the state (and results) of pdf conversions.
-
Daniel Schultz authored
This is basically the result of the initial alembic setup with the addition of a single line to support custom schemas. The reason for schema support is that integration tests will be running against a test schema.
-
Daniel Schultz authored
This also includes a new documented goal of staying on the most current stable version of Python. This seems like a good practice, but also we need some of the more recent typing features.
-
Daniel Schultz authored
I had thought this was enabled by default but it wasn't. This just means our imports will be sorted in a more standard / predictable way.
-
Daniel Schultz authored
This seems like standard boilerplate elsewhere, and was just omitted initially.
-
Daniel Schultz authored
There is a known deprecation issue and we don't need to be bothered by it for now. Eventually upstream will fix it in which case we should remove the line that silences the warning.
-
Daniel Schultz authored
We want our integration tests to run against a test database. This allows us to create more specific tests (e.g. predict ID values) in addition to making sure we don't interact with real data. I decided to use the PostgreSQL schema support instead of requiring a separate `TEST_DATABASE_URL`. This means there is less setup for a dev environment but also makes it easier for us to drop / create the schema as part of the tests.
-
Daniel Schultz authored
This endpoint allows a client to register a PDF that needs to be converted to markdown. It doesn't do the actual conversion, but instead stores the request in a table which can then be used to drive batch conversion actions. Issue #4 Create endpoint to register a PDF / markdown conversion
-
Daniel Schultz authored
Add `POST /conversions` endpoint Closes #4 See merge request !3
Showing
- .env.example 11 additions, 0 deletions.env.example
- .gitlab-ci.yml 13 additions, 0 deletions.gitlab-ci.yml
- .python-version 1 addition, 1 deletion.python-version
- Makefile 5 additions, 1 deletionMakefile
- README.md 19 additions, 1 deletionREADME.md
- alembic.ini 114 additions, 0 deletionsalembic.ini
- alembic/README 1 addition, 0 deletionsalembic/README
- alembic/env.py 84 additions, 0 deletionsalembic/env.py
- alembic/script.py.mako 26 additions, 0 deletionsalembic/script.py.mako
- alembic/versions/2024_06_26_1521-77fafc06f36e_create_account_table.py 57 additions, 0 deletions...ions/2024_06_26_1521-77fafc06f36e_create_account_table.py
- pyproject.toml 3 additions, 0 deletionspyproject.toml
- requirements-dev.txt 1 addition, 0 deletionsrequirements-dev.txt
- requirements.txt 3 additions, 0 deletionsrequirements.txt
- service/api/handlers/conversions.py 12 additions, 0 deletionsservice/api/handlers/conversions.py
- service/api/routers/conversions.py 7 additions, 0 deletionsservice/api/routers/conversions.py
- service/core/database.py 45 additions, 0 deletionsservice/core/database.py
- service/core/settings.py 6 additions, 0 deletionsservice/core/settings.py
- service/main.py 8 additions, 3 deletionsservice/main.py
- service/models/conversion.py 70 additions, 0 deletionsservice/models/conversion.py
- tests/conftest.py 48 additions, 0 deletionstests/conftest.py
alembic.ini
0 → 100644
alembic/README
0 → 100644
alembic/env.py
0 → 100644
alembic/script.py.mako
0 → 100644
alembic==1.13.2 | ||
boto3==1.34.131 | ||
fastapi==0.111.0 | ||
psycopg2-binary==2.9.9 | ||
pydantic==2.7.4 | ||
pydantic-settings==2.3.3 | ||
SQLAlchemy==2.0.31 | ||
uvicorn==0.30.1 |
service/api/handlers/conversions.py
0 → 100644
service/api/routers/conversions.py
0 → 100644
service/core/database.py
0 → 100644
service/models/conversion.py
0 → 100644
tests/conftest.py
0 → 100644