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
3. Create a [Personal Access Token](https://xethub.com/explore/install). Click on 'CREATE TOKEN' button.
98
113
4. Copy & Execute Login command, it should look like: `git xet login -u rajatarya -e [email protected] -p **********`
99
-
5. To make these credentials available to pyxet, set the -u param (rajatarya above) and the -p param as XET_USER and XET_TOKEN environment variables. Also, for your python session, `pyxet.login()` will set the environment variables for you.
114
+
5. To make these credentials available to pyxet, set the -u param (rajatarya above) and the -p param as XET_USERNAME and XET_TOKEN environment variables. Also, for your python session, `pyxet.login()` will set the environment variables for you.
100
115
101
116
```sh
102
117
# Note: set this environment variable into your shell config (ex. .zshrc) so not lost.
103
-
exportXET_USER=<YOUR XETHUB USERNAME>
118
+
exportXET_USERNAME=<YOUR XETHUB USERNAME>
104
119
export XET_TOKEN=<YOUR PERSONAL ACCESS TOKEN PASSWORD>
105
120
```
106
121
122
+
### ML Demo
123
+
124
+
A slightly more complete demo doing some basic ML is as simple as setting up your virtualenv with:
125
+
126
+
```sh
127
+
pip install scikit-learn ipython pandas
128
+
```
107
129
```python
108
-
import pandas as pd
109
130
import pyxet
110
131
111
-
df = pd.read_csv("xet://xdssio/titanic/main/titanic.csv") # All files on the platform are available with permissions
Copy file name to clipboardexpand all lines: docs/index.rst
+9-18
Original file line number
Diff line number
Diff line change
@@ -4,38 +4,30 @@ Welcome to pyxet's documentation!
4
4
=================================
5
5
6
6
pyxet is a Python library that provides a lightweight interface for the `XetHub <https://xethub.com/>`_ platform.
7
-
XetHub is a blob-store with a file-system like interface and git capabilities, therefore pyxet implement both a CLI for both a file-system and git needs.
8
7
9
8
Installation
10
9
~~~~~~~~~~~~
11
-
``pip install pyxet``
10
+
Assuming you are on a supported OS (MacOS or Linux) and are using a supported version of Python (3.7+), set up your virtualenv with:
0 commit comments