Skip to content

update client #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.ipynb_checkpoints/*
*.ipynb
*.txt
*.pyc
*.csv
*.xls*
daily_report
manual_adjust
57 changes: 2 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,5 @@
# mercury-client


# Tutorial


## 1. Install python 2.7

## 2. Install mercury-client package from Github

Datayes Official Github is: https://github.com/DataYes/mercury-client, You can download the mercury-client package here.
Or download directly from [here](http://litaotao.github.io/files/mercuryclient.rar)

### 2.1 Uncompress the package
### 2.2 Intall the package

- Open the command line tool
- windows: cmd
- linux/mac: terminal
- Use the ***cd*** command to go the the package directory which contains ***setup.py*** file
- Execute command ***python setup.py install*** to install the mercury-client package

## 3. USAGE:

***Steps***

- Get an client instance
- import mercury
- client = mercury.Client(username='username', password='password')
- Use that instance to list/get/delete your files in Datayes Mercury.
- lists()
Show the all the data in one user's mercury data zone.
- get(filename='', download_all=False)
Get user's data according to filename, can be a string or a list of string.
If set all to True, will download all the data file.
- delete(filename)
Delete user's data according to filename, can only be a string.

***EXAMPLES***

import mercury
client = mercury.Client('[email protected]', 'password')
all_files = client.lists()
client.get(filename='123.txt')
client.delete(filename='123.txt')

Bellow is the screenshot of the above:
![mercury-client.jpg](http://litaotao.github.io/images/mercury-client.jpg)

# 中文使用步骤

- 安装Python 2.7
- 安装mercury-client包
- 生成client实例
- 使用client进行list/get/delete操作
## Uqer Client

使用步骤:参考优矿社区贴:


2 changes: 1 addition & 1 deletion mercury/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

from data import Client
from uqer import Client
228 changes: 0 additions & 228 deletions mercury/data.py

This file was deleted.

Loading