Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jun 21, 2024
1 parent 84e0b21 commit 15a19a5
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 34 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
site
.python-version
requirements-dev.lock
.aider*
3 changes: 2 additions & 1 deletion docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
The configuration settings are encapsulated within the `CodeBoxSettings` class, which inherits from Pydantic's `BaseSettings` class.

`codeboxapi/config.py`

```python
class CodeBoxSettings(BaseSettings):
...
Expand All @@ -22,7 +23,7 @@ class CodeBoxSettings(BaseSettings):

### CodeBox API Settings

- `CODEBOX_API_KEY: Optional[str] = None`
- `CODEBOX_API_KEY: str | None = None`
The API key for CodeBox.

- `CODEBOX_BASE_URL: str = "https://codeboxapi.com/api/v1"`
Expand Down
14 changes: 4 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ authors = [{ name = "Shroominic", email = "contact@shroominic.com" }]
dependencies = [
"pydantic>=2",
"pydantic-settings>=2",
"requests>=2",
"aiohttp>=3.9",
"httpx>=0.27.0",
"httpx-sse>=0.4.0", # todo check if really needed
]
readme = "README.md"
requires-python = ">= 3.9"
Expand All @@ -35,16 +35,10 @@ dev-dependencies = [
"codeboxapi[all]",
"mypy>=1.8",
"ruff>=0.1",
"pytest>=7.4",
"pre-commit>=3.5",
"pytest-asyncio>=0.23.7",
# docs
"neoteroi-mkdocs>=1",
"mkdocs-material>=9",
"types-requests>=2.31",
"matplotlib>=3.8.2",
"jupyter-client>=8.6.0",
"ipykernel>=6.29.3",
"pip",
"rich>=13.7.0",
]

[project.optional-dependencies]
Expand Down
41 changes: 18 additions & 23 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,27 @@
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false

-e file:.
aiohttp==3.9.5
# via codeboxapi
aiosignal==1.3.1
# via aiohttp
annotated-types==0.6.0
# via pydantic
attrs==23.2.0
# via aiohttp
anyio==4.4.0
# via httpx
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
frozenlist==1.4.1
# via aiohttp
# via aiosignal
# via httpcore
# via httpx
h11==0.14.0
# via httpcore
httpcore==1.0.5
# via httpx
httpx==0.27.0
# via codeboxapi
httpx-sse==0.4.0
# via codeboxapi
idna==3.7
# via requests
# via yarl
multidict==6.0.5
# via aiohttp
# via yarl
# via anyio
# via httpx
pydantic==2.7.1
# via codeboxapi
# via pydantic-settings
Expand All @@ -38,12 +36,9 @@ pydantic-settings==2.2.1
# via codeboxapi
python-dotenv==1.0.1
# via pydantic-settings
requests==2.31.0
# via codeboxapi
sniffio==1.3.1
# via anyio
# via httpx
typing-extensions==4.11.0
# via pydantic
# via pydantic-core
urllib3==2.2.1
# via requests
yarl==1.9.4
# via aiohttp
2 changes: 2 additions & 0 deletions roadmap.todo
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
[ ] - chromiumbox + vectorbox

[ ] - gitbox

[ ] - seperate .venv for localbox managed by uv

0 comments on commit 15a19a5

Please sign in to comment.