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
This is the official Python SDK for Kern AI, your IDE for programmatic data enrichment and management.
8
8
9
9
## Installation
10
10
11
-
You can set up this library via either running `$ pip install kern-sdk`, or via cloning this repository and running `$ pip install -r requirements.txt` in your repository.
11
+
You can set up this library via either running `$ pip install kern-sdk`, or via cloning this repository and running `$ pip install -r requirements.txt` in this repository.
12
12
13
13
## Usage
14
14
Once you installed the package, you can access the application from any Python terminal as follows:
Alternatively, you can provide a `secrets.json` file in your repository, looking as follows:
29
+
```json
30
+
{
31
+
"user_name": "your-username",
32
+
"password": "your-password",
33
+
"project_id": "your-project-id"
34
+
}
35
+
```
36
+
Again, if you run on your local machine, you should provide also `"uri": "http://localhost:4455"`.
37
+
28
38
Now, you can easily fetch the data from your project:
29
39
```python
30
-
df = client.fetch_export()
40
+
df = client.get_record_export()
31
41
```
32
42
43
+
Alternatively, you can also just run `kern pull` in your CLI given that you have provided the `secrets.json` file.
44
+
33
45
The `df` contains data of the following scheme:
34
46
- all your record attributes are stored as columns, e.g. `headline` or `running_id` if you uploaded records like `{"headline": "some text", "running_id": 1234}`
35
47
- per labeling task three columns:
@@ -41,7 +53,8 @@ With the `client`, you easily integrate your data into any kind of system; may i
41
53
42
54
## Roadmap
43
55
-[ ] Register information sources via wrappers
44
-
-[ ] Fetch project statistics
56
+
-[ ] Add project upload
57
+
-[x] Fetch project statistics
45
58
46
59
47
60
If you want to have something added, feel free to open an [issue](https://github.com/code-kern-ai/kern-python/issues).
0 commit comments