Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Authentication Interface #49

Merged
merged 4 commits into from
Mar 29, 2024
Merged

Basic Authentication Interface #49

merged 4 commits into from
Mar 29, 2024

Conversation

VVoruganti
Copy link
Collaborator

Introduces an optional Middleware in the src/main.py file of the API that can be used for validating simple HTTP Authorization headers.

This design allows for a decoupling between the core API service and the actual authentication. In the future when more advanced and flexibile authentication is used it can still plug into the core Honcho service. Additionally, it maintains the ability to self host without needing to roll an authentication/authorization service.

Additional changes include

  • Added Documentation in the repo
  • Changed Langchain utility function names so they show up in sphinx documentation

@VVoruganti VVoruganti requested review from vintrocode and hyusap March 25, 2024 22:52
@VVoruganti VVoruganti marked this pull request as ready for review March 25, 2024 22:53
Copy link

cloudflare-workers-and-pages bot commented Mar 25, 2024

Deploying honcho-python-sdk-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: bab7e0e
Status: ✅  Deploy successful!
Preview URL: https://cd1728a8.honcho-python-sdk-docs.pages.dev
Branch Preview URL: https://vineeth-dev-226.honcho-python-sdk-docs.pages.dev

View logs

Copy link

Name Stmts Miss Cover
honcho/__init__.py 4 0 100%
honcho/cache.py 16 11 31%
honcho/client.py 477 122 74%
honcho/schemas.py 31 3 90%
honcho/sync_client.py 477 122 74%
tests/test_async.py 360 0 100%
tests/test_sync.py 340 0 100%
TOTAL 1705 258 85%

Docstring Coverage

=========== Coverage for /home/runner/work/honcho/honcho/sdk/honcho/ ===========
----------------------------------- Summary ------------------------------------
| Name                     |      Total |      Miss |      Cover |      Cover% |
|--------------------------|------------|-----------|------------|-------------|
| __init__.py              |          1 |         0 |          1 |        100% |
| cache.py                 |          5 |         0 |          5 |        100% |
| client.py                |         77 |         0 |         77 |        100% |
| schemas.py               |         10 |         0 |         10 |        100% |
| sync_client.py           |         77 |         0 |         77 |        100% |
| ext/__init__.py          |          1 |         0 |          1 |        100% |
| ext/langchain.py         |          5 |         0 |          5 |        100% |
|--------------------------|------------|-----------|------------|-------------|
| TOTAL                    |        176 |         0 |        176 |      100.0% |
--------------- RESULT: PASSED (minimum: 80.0%, actual: 100.0%) ----------------

@VVoruganti VVoruganti merged commit e4e3147 into staging Mar 29, 2024
4 checks passed
@VVoruganti VVoruganti deleted the vineeth/dev-226 branch May 13, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant