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: CONTRIBUTING.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,10 @@ Contributions are totally welcome. However, contributors must sign a Contributor
4
4
5
5
## Release process
6
6
7
-
1. Update version number and information at `setup.py`, `conf.py` and `NEWS.md`.
8
-
2. You must be maintainer at [carto pypi repo](https://pypi.python.org/pypi/carto/).
9
-
3. Prepare a `~/.pypirc` file:
7
+
1. Make sure documentation is generated properly. See the [doc](https://github.com/CartoDB/carto-python/tree/master/doc) directory for more information.
8
+
2. Update version number and information at `setup.py`, `conf.py` and `NEWS.md`.
9
+
3. You must be maintainer at [carto pypi repo](https://pypi.python.org/pypi/carto/).
10
+
4. Prepare a `~/.pypirc` file:
10
11
11
12
```
12
13
[distutils]
@@ -23,7 +24,7 @@ username=your_username
23
24
password=your_password
24
25
```
25
26
26
-
4. Upload the package to the test repository: `python setup.py sdist upload -r pypitest`.
27
-
5. Install it in a new environment: `pip install --index-url=https://test.pypi.org/simple --extra-index-url=https://pypi.org/simple carto`.
COPY queries allow you to use the [PostgreSQL COPY command](https://www.postgresql.org/docs/10/static/sql-copy.html) for efficient streaming of data to and from CARTO.
145
+
146
+
Here is a basic example of its usage:
147
+
148
+
```python
149
+
from carto.sql import SQLClient
150
+
from carto.sql import CopySQLClient
151
+
152
+
sql_client = SQLClient(auth_client)
153
+
copy_client = CopySQLClient(auth_client)
154
+
155
+
# Create a destination table for the copy with the right schema
0 commit comments