semvec/pypi-packages huggingface dataset:
trackl-client 2.1.2
Trackl Python Client
Requires Python: >=3.6,<4.0

# Trackl Python Client

## Install

`python3 -m pip install git+https://gitlab.com/denny.weinberg/trackl-python-client`
or
`python3 -m pip install trackl-python-client`

## Python

**Usage/Init**

```python
from trackl_client import TracklClient


client = TracklClient(api_endpoint='http://localhost:8080/api/v1', api_key='ey...')

# Or with workspace, email and password
client = TracklClient(api_endpoint='http://localhost:8080/api/v1', workspace='test' login_email='test@test.com', password='test')
```

**Examples**

```python
# Teams: List
teams = client.teams_list()

# Teams: Search
teams = client.teams_search(name='Name')

# Teams: Create
team = client.teams_create(True, 'Name')

# Users: List
users = client.users_list()

# Users: Search
users = client.users_search(email='test@test.com')

# Users: Create
user = client.users_create(True, 'email', 'Name', 'testPWD123$', ['record.read', 'record.write'])

# Teams: Add User
client.teams_add_user(team_name='Name',  user_email='test@test.com')

# Teams: Remove User
client.teams_remove_user(team_name='Name', user_email='test@test.com')

# Teams: List Users
users = client.teams_list_users(team_name='Office')

# Records: Search
records = client.records_search(page=1, page_type='elements', id='1,2', page_size=200, start_date_time_from='2022-10-01', start_date_time_to='2022-10-05', end_date_time_is_null=False, include_user_name=True)

# Records: Validate
record_validity_infos = client.records_validate(1)
```

## CLI

**Usage**

```bash
python3 -m trackl_client.cli
    --api_endpoint ${api_endpoint} --workspace ${workspace} --api_key ${api_key} --login_email ${login_email} --password ${password} 
    users_create|teams_create|teams_add_user|teams_remove_user
    [--help]
    other_arg_1 --other_kwarg_1

# More:

# python3 -m trackl_client.cli --help

# python3 -m trackl_client.cli records_search --help
```

**Init**

```bash
export api_endpoint='http://localhost:8080/api/v1'

export api_key='ey...'

# Or with workspace, email and password
# export workspace='test'
# export login_email='test@test.com'
# export password='test'
```

**Examples**

```bash
# Teams: List
python3 -m trackl_client.cli teams_list

# Teams: Search
python3 -m trackl_client.cli teams_search --name Name

# Teams: Create
python3 -m trackl_client.cli teams_create True Name
```
fifeutil-jmfife 0.0.1
Utility functions
Requires Python: >=3.7

# FifeUtil
Package of Python utilities I find handy.

[FifeUtil](https://github.com/jmfife/fifeutil) is the place to keep utilities that I would like to re-use 
across projects.

## Installation

To install directly from GitHub:
```
python3 -m pip install "git+https://github.com/jmfife/fifeutil.git"
```

If you have cloned or forked the repo already to your local directory and want to use it in live (editable mode):
```
python3 -m pip install -e "."
```

## Quickstart

Install the package from GitHub:
```
python3 -m pip install "git+https://github.com/jmfife/fifeutil.git"
```

Now we see an example of using the one of the timer utilities that synchronizes events with the hour.
First run the Python interpreter, then:
```
>>> from fifeutil import timing
>>> timer1 = timing.TimerSyncHour(3600/5)
>>> import datetime
>>> def printtime():
...     print(datetime.datetime.now())
... 
>>> timer1.triggercallback(printtime)
2020-05-31 17:25:10.001249
2020-05-31 17:25:15.001348
2020-05-31 17:25:20.000543
2020-05-31 17:25:25.000405
```
We see the timer triggering at 5-second intervals synchronized with the top of the hour and with the 
minute in this case.
fifeutil 1.0.1
Utility functions
Requires Python: >=3.7

# FifeUtil
Package of Python utilities I find handy.

[FifeUtil](https://github.com/jmfife/fifeutil) is the place to keep utilities that I would like to re-use 
across projects.

## Installation

To install directly from GitHub:
```
python3 -m pip install "git+https://github.com/jmfife/fifeutil.git"
```

If you have cloned or forked the repo already to your local directory and want to use it in live (editable mode):
```
python3 -m pip install -e "."
```

## Quickstart

Install the package from GitHub:
```
python3 -m pip install "git+https://github.com/jmfife/fifeutil.git"
```

Now we see an example of using the one of the timer utilities that synchronizes events with the hour.
First run the Python interpreter, then:
```
>>> from fifeutil import timing
>>> timer1 = timing.TimerSyncHour(3600/5)
>>> import datetime
>>> def printtime():
...     print(datetime.datetime.now())
... 
>>> timer1.triggercallback(printtime)
2020-05-31 17:25:10.001249
2020-05-31 17:25:15.001348
2020-05-31 17:25:20.000543
2020-05-31 17:25:25.000405
```
We see the timer triggering at 5-second intervals synchronized with the top of the hour and with the 
minute in this case.
AuroraSolarClient 2.0.1
A python client for Aurora Solar
Requires Python: >=3.6

# Python Aurora Solar Client

A python client for the Aurora Solar API.

## Dependencies
* requests

## Getting Started

	pip install AuroraSolarClient

## Usage

### __v2.0.1__
AuroraSolarClient supports both API versions 2018.01 and v2022.09 as well as HMAC and Bearer token authentication. Instantiation of the client requires `tenant_id` and `credentials`. The third `version` parameter is optional and if not provided, then API v2022.09 is assumed.

	client = AuroraSolarClient(tenant_id, credentials, version)

__tenant_id__ (string)
: The tenant Id assigned to you by Aurora Solar.

__credentials__ (object)
: JSON object containting either `api_token` (for bearer authentication), or `api_key` and `api_secret` (for HMAC authentication). If `api_token` exists, the client will automatically use the preferred bearer authentication.

__version__ (string) (optional)
: The version of AuroraSolar API you wish to use. If not provided, the default is "2022.09". The only other acceptable version is "2018.01".

#### Example using bearer token (most common)
```python
from AuroraSolarClient import AuroraSolarClient

tenant_id = "my_tenant_id"
credentials = { "api_token": "sk_prod_1234abc4321cba" }

client = AuroraSolarClient(tenant_id, credentials)
print("Aurora Solar Client", client.version, client.auth_type)
response = client.get_versions()
print("response:", response.text)
```

#### Example using API v2018.01 with HMAC authentication
```python
from AuroraSolarClient import AuroraSolarClient

tenant_id = "my_tenant_id"
credentials = { 
	api_key: "my_api_key", 
	api_secret: "my_api_secret"
}

client = AuroraSolarClient(tenant_id, credentials, "2018.01")
print("Aurora Solar Client", client.version, client.auth_type)
response = client.get_versions()
print("response:", response.text)
```

### __v1.0.4__
AuroraSolarClient only supports API v2018.01, uses HMAC authentication only, and must be initialized with a `tenant_id`, `api_key`, and `api_secret`. Once intialized, you can use any of the provided functions to return a requests response object.

	client = AuroraSolarClient(tenant_id, api_key, api_secret)

__tenant_id__ (string)
: The tenant Id assigned to you by Aurora Solar.

__api_key__ (string)
: The API key assigned to you by Aurora Solar.

__api_secret__ (string)
: The API secret assigned to you by Aurora Solar.

#### Example
```python
from AuroraSolarClient import AuroraSolarClient

client = AuroraSolarClient("my_tenant_id", "my_api_key", "my_api_secret")
response = client.get_project("aurora_project_id")
print("response:", response.text)
```

## Change Log

__Note__: v2.0.1 is initialized with different parameters from v1.0.4. __Upgrading from v1.0.4 to v2.0.1 is a breaking change__.

__v2.0.1__
- Added support for API version 2022.09 while retaining support for 2018.01
- Added support for bearer authentication while retaining support for HMAC authentication
- Added more supported endpoints

__v1.0.4__
- original build out for API version 2018.01
- pre-official documentation
- only HMAC authentication supported
- limited endpoints