semvec/pypi-packages huggingface dataset:
k50-tracker-api 0.0.4
K50 tracker api wrapper
License: MIT
Requires Python: >=3.6

# K50 tracker ai wrapper

## Installation

Install using `pip`...

    pip install k50-tracker-api
    
### Usage
```python
from k50_tracker import K50Client

k50 = K50Client('<your access_token>')

# get projects
# doc - https://help.k50.ru/tracker-api/api-requests/get-counters-list/
k50.get_projects() # return dict

# get pool list
# doc - https://help.k50.ru/tracker-api/api-requests/get-pool/
k50.get_pool_list(counter_id=123) # optional page: int - default 1, items_per_page: int - default 1000

# get call stats
# doc - https://help.k50.ru/tracker-api/api-requests/get-calls-stat-v2/
k50.get_call_stats(counter=123, dimensions=['dimension1', 'dimension2'], csv=False) # csv True/False by return csv or json

# get order stats
# doc - https://help.k50.ru/tracker-api/api-requests/get-orders-stat-v2/
k50.get_order_stats(counter=123, dimensions=['dimension1', 'dimension2'], csv=False) # csv True/False by return csv or json

# get tags
# doc - https://help.k50.ru/tracker-api/api-requests/get-tags/
k50.get_tags(counter=123)

# get leads
# doc - https://help.k50.ru/tracker-api/api-requests/get-leads/
k50.get_leads(counter=123, dimensions=['dimension1', 'dimension2'], csv=False, is_show_inter_action_chain=False)


# get reports
# doc - https://help.k50.ru/tracker-api/api-requests/get-reports/
from datetime import datetime, timedelta
date_from = datetime.now() - timedelta(days=1)
k50.get_reports(
    counter=123,
    dimensions=['dimension1', 'dimension2'],
    metrics=['metric1'],
    date_from=date_from,
    date_to=date_to,
    limit=1000,
    offset=0,
    csv=False
)

# add call
# doc - https://help.k50.ru/tracker-api/api-requests/add-calls/
k50.add_call(counter=123, call_id=123, start_time=datetime.now(), caller_phone='79379992', called_phone='9389992')

# update_call
# doc - https://help.k50.ru/tracker-api/api-requests/update-calls/
k50.update_call(counter=123, call_id=123, start_time=datetime.now(), caller_phone='79379992', called_phone='9389992')

# add order
# doc - https://help.k50.ru/tracker-api/api-requests/add-orders-stat-v2/
k50.add_order(counter=123, order_id=123, date_time=datetime.now())

# update order
# doc - https://help.k50.ru/tracker-api/api-requests/update-orders-stat-v2/
k50.update_order(counter=123, order_id=123, date_time=(datetime.now() - timedelta(days=1)))

# add tags to call
# dod - https://help.k50.ru/tracker-api/api-requests/add-call-tags/
k50.add_tags_to_calls(counter=123, call_id=123, tags=['list of tags'])


# add tags to call
# dod - https://help.k50.ru/tracker-api/api-requests/add-call-tags/
k50.remove_tags_from_call(counter=123, call_id=123, tags=['list of tags'])
```

### LICENSE
MIT
tidynotes 21.1.1
A simple digital notebook using Markdown.
License: MIT

# Tidynotes

A script to generate a notebook in Markdown. The basic setup is designed around how I take digital notes but should be fairly hackable. I use it to make a single file per day that can then be merged into a single hmtl export or an export for each project I'm working on.

Inside each note:

* There's a single level 1 heading that is the name of the note (generally the day it covers),
* Each project goes under a level 2 heading,
* Tasks within those projects have a level 3 heading,
* Level 4 & 5 headings are optional sub-divisions within those tasks,

The script is designed to be called from the command-line. It takes a directory passed as a positional argument and a number of flags:

* ```-g```/```--generate_note``` generates a note for the current day,
* ```-s```/```--make_series``` generates notes for n days in the future,
* ```-i```/```--initialise_notebook``` generates a blank notebook in the directory,
* ```-r```/```--render_all``` merges all markdown files and renders them into a single html output,
* ```-c```/```--clean``` runs a simple heading cleanup routine and runs user-set regex over all notes,
* ```-e```/```--extract_project``` extracts and renders the notes for a specific project,
* ```-a```/```--extract_all``` extracts and renders the notes for all projects,

The script also allows for a few additional features (mainly during cleanup):

* Storing a list of all projects / tasks. This is mainly to allow corrections of misspellings etc.
* A list of regex corrections. The default set:
    * Standardises newlines between tasks,
    * Newline at the end of each file,
    * Homogenises quote marks (e.g. ’ to '),