-
Notifications
You must be signed in to change notification settings - Fork 52
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
Testing and updates #106
Open
maxwellflitton
wants to merge
39
commits into
main
Choose a base branch
from
testing-and-updates
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Testing and updates #106
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* feat: add pre-commit config * feat: add dev requirements * feat: implement sync & async clients * chore: run formatter * chore: rename sync client for consistency * chore: add `__all__` to all files * chore: refine imports * feat: improve compatibility for lower py versions * chore: run formatter * feat: change `__all__` to use tuples instead of lists * feat: add extra dunder module attributes * chore: remove author from setup.py * chore: remove author dunder attribute and add copyright * chore: add copyright headers to files * feat: switch to black * feat: add license to setup.py * chore: run formatter * feat: add more pre-commit hooks * chore: run formatter * fix: replace autopep8 with black in dev requirements * feat: add pyproject.toml file for poetry * chore: change versioning * chore: remove unused `requests` dependency * fix: change `method` type annotation to `str` to support 3.7 * fix: more changes to complete py3.7 support * feat: add author * fix: `orjson` in requirements.txt * feat: move exceptions from folder into single file * fix: incorrect exception import * feat: rename `SurrealDBClient` to `SyncSurrealDBClient` * feat: remove sync client, move & rename async client * chore: remove un-used requirements file * force `namespace`, `database`, `username` and `password` to be keyword arguments * chore: delete setup.py inplace of pyproject.toml * fix: add `Optional`s on `__aexit__` * chore: add .vscode to gitignore * chore: move client.py to clients/http.py * chore: remove unused dev requirements * feat: add ws requirements * feat: add base ws client, increment library version * feat: add TypedDict for ws request * feat: add response listening, add remaining request types * feat: force args after `url` to be keyword * feat: add username/password auth from ctor * fix: bugs on authentication * feat: add ping * feat: improve function typing * feat: further improve typing * fix: remove old client * Update surrealdb/clients/ws.py Co-authored-by: Caeden <[email protected]> * Update surrealdb/clients/ws.py Co-authored-by: Caeden <[email protected]> * fix: list type annotation * feat: remove unused import and add future annotations * chore: rename `SurrealDBWSClient` to `SurrealDBWebsocketClient` * chore: remove `SurrealDB` suffix from client names * fix: port #7 to http client Co-authored-by: tsunyoku <[email protected]> Co-authored-by: Caeden <[email protected]>
* fix: replace TypedDict with dataclass for py3.7 compatibility * fix: response.get("error") -> response.error * fix: TypedDict notation -> dataclass * fix: error not being optional Co-authored-by: tsunyoku <[email protected]>
…nd updated examples (#46)
Caeden Perelli-Harris <[email protected]>
…#48) Co-authored-by: Alexander <[email protected]>
Co-authored-by: Hitesh <[email protected]> Co-authored-by: Caeden Perelli-Harris <[email protected]>
Co-authored-by: Alexander <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.
What is the motivation?
Type of Change
What does this change do?
What is your testing strategy?
Is this related to any issues?
Have you read the Contributing Guidelines?