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
Alternatively, you can provide a `secrets.json` file in your repository, looking as follows:
28
+
Alternatively, you can provide a `secrets.json` file in your directory where you want to run the SDK, looking as follows:
29
29
```json
30
30
{
31
31
"user_name": "your-username",
32
32
"password": "your-password",
33
33
"project_id": "your-project-id"
34
34
}
35
35
```
36
-
Again, if you run on your local machine, you should provide also `"uri": "http://localhost:4455"`.
36
+
Again, if you run on your local machine, you should also provide `"uri": "http://localhost:4455"`. Afterwards, you can access the client like this:
37
+
```python
38
+
client = Client.from_secrets_file("secrets.json")
39
+
```
37
40
38
41
Now, you can easily fetch the data from your project:
39
42
```python
40
43
df = client.get_record_export()
41
44
```
42
45
43
-
Alternatively, you can also just run `kern pull` in your CLI given that you have provided the `secrets.json` file.
46
+
Alternatively, you can also just run `kern pull` in your CLI given that you have provided the `secrets.json` file in the same directory.
44
47
45
48
The `df` contains data of the following scheme:
46
49
- 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}`
0 commit comments