You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,58 @@ with Surreal("ws://localhost:8000/rpc") as db:
129
129
## Next steps
130
130
131
131
Now that you have learned the basics of the SurrealDB SDK for Python, you can learn more about the SDK and its methods [in the methods section](https://surrealdb.com/docs/sdk/python/methods) and [data types section](https://surrealdb.com/docs/sdk/python/data-types).
132
+
132
133
## Contributing
134
+
133
135
Contributions to this library are welcome! If you encounter issues, have feature requests, or
134
136
want to make improvements, feel free to open issues or submit pull requests.
135
137
138
+
If you want to contribute to the Github repo please read the general contributing guidelines on concepts such as how to create a pull requests [here](https://github.com/surrealdb/surrealdb.py/blob/main/CONTRIBUTING.md).
139
+
140
+
## Getting the repo up and running
141
+
142
+
To contribute, it's a good idea to get the repo up and running first. We can do this by running the tests. If the tests pass, your `PYTHONPATH` works and the client is making successful calls to the database. To do this we must run the database with the following command:
143
+
144
+
```bash
145
+
# if the docker-compose binary is installed
146
+
docker-compose up -d
147
+
148
+
# if you are running docker compose directly through docker
149
+
docker compose up -d
150
+
```
151
+
152
+
Now that the database is running, we can enter a terminal session with all the requirements installed and `PYTHONPATH` configured with the command below:
153
+
154
+
```bash
155
+
bash scripts/term.sh
156
+
```
157
+
158
+
You will now be running an interactive terminal through a python virtual environment with all the dependencies installed. We can now run the tests with the following command:
159
+
160
+
```bash
161
+
python -m unittest discover
162
+
```
163
+
164
+
The number of tests might increase but at the time of writing this you should get a printout like the one below:
165
+
166
+
```bash
167
+
.........................................................................................................................................Error in live subscription: sent 1000 (OK); no close frame received
0 commit comments