Skip to content

Commit

Permalink
bump to 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanz committed Oct 2, 2018
1 parent 9141326 commit d10545e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
`$ carto_cli`
`$ carto-cli`
=========================

**WORK IN PROGRESS**

## TO-DO

* Finish visualization and named maps interactions
* Set up defaults system for formats and a default account
* Add subcommands to `carto_env` to add, update and remove entries
* Support new `COPY` methods

## TL;DR

A simple set of command line applications to interact with your own CARTO account.

Expand All @@ -22,7 +23,11 @@ A simple set of command line applications to interact with your own CARTO accoun

### How to install

As for now you need to clone or download the repo and run `pip install .` or `python setup.py install`.
The package is available at [pypi](https://pypi.org/project/carto-cli/) so you can just run:

```
$ pip install carto-cli
```

### How to contribute

Expand Down Expand Up @@ -65,10 +70,11 @@ Commands:
version Prints the version of this application
```

So if you have the `$CARTO_ENV` environment pointing for example to `/tmp/cartoenv` and then you define `alias c="source $CARTO_ENV"` then you can load any user of your database with:
So if you have the `$CARTO_ENV` environment pointing for example to `/tmp/cartoenv`, then you you can load any user of your database with:

```bash
$ carto_env load jsanz; c
$ carto_env load jsanz
$ source /tmp/cartoenv; echo $CARTO_API_URL
```

### Configuration file
Expand Down Expand Up @@ -198,4 +204,4 @@ Commands:
## `carto_map`
Manage your maps
Manage your maps
2 changes: 1 addition & 1 deletion carto_cli/carto/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import click

CARTO_CLI_VERSION='0.0.0'
CARTO_CLI_VERSION='0.0.2'

@click.command(help='Prints the version of this application')
@click.help_option('-h', '--help')
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
carto==1.1.2
carto==1.3.0
click==6.7
PyYAML==3.12
prettytable==0.7.2
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def read(fname):
with open('requirements.txt') as f:
required = f.read().splitlines()
except:
required = ['carto>=1.0.1', 'click>=6.6']
required = ['carto==1.3.0', 'click>=6.7','PyYAML=3.12','prettytable=0.7.2']

try:
with open('test_requirements.txt') as f:
Expand All @@ -26,13 +26,13 @@ def read(fname):

setup(name="carto-cli",
author="Jorge Sanz",
author_email="jorge@carto.com",
author_email="xurxosanz@gmail.com",
description="Command Line applications to interact with your CARTO account",
long_description=read('README.md'),
keywords = "carto cli cartodb api",
license="MIT",
version=CARTO_CLI_VERSION,
url="https://github.com/CartoDB/carto-cli",
url="https://github.com/jsanz/carto_cli",
install_requires=required,
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit d10545e

Please sign in to comment.