semvec/pypi-packages huggingface dataset:
tprogress 0.0.6
time monitoring
Keywords: time keeping,time monitoring

# tprogress
Simple time capturing for python, that logs the time passed since last call with logger level.DEBUG. 

# How-to

## Time Logging
1. Create tprogress class instance, e.g. *timep = tprogress.progress()* . Starts the clock.
2. Call *tprogress.elapsed_time (self,stage='')* that returns a formatted string with time and in debug mode the time. 
The argument *stage* is a string that can be used to state at what stage the program is when called. 

Example
  * DEBUG:tprogress:Elapsed Time:   1m 0.683s (  0: 1:0.7) - Backward Calculation of Rank


## Time Monitoring
1. Create tprogress class instance, e.g. *timep = tprogress.progress(max_num=100,step_size=1,freq=5)* . Starts the clock.
2. Call *tprogress.monitor()* within a large *for*-loop that tells about how far program is and predicts
when the loop is finished. The setting is done in the _init_ call: 
  * max_num: Number of loops, e.g. 100
  * step_size: Size of step, e.g. 1
  * freq: How often an info print should be done, e.g. 5, every 5th loop iteration
pydatalake-gen2 0.0.10
REST API Client to Azure Data Lake Gen2
Requires Python: >=3.4

# Python client for Azure Data Lake Gen2 REST API

It's simple implementation of Data Lake Gen2 REST api. Some of methods still not works properly.

## Installation

```bash
pip3 install pydatalake-gen2
```

## Usage

```python
from azure.datalake.gen2.client import DataLakeGen2Client

client = DataLakeGen2Client(ACCOUNT_NAME, STORAGE_KEY)

# Create fylesystem (aka container)
headers = client.create_filesystem('/testfilesystem')

# List available filesystems (containers)
filesystems = client.list_filesystem()

# Get files from container
files = client.list_path('testfilesystem', directory="/optional/folder")

# Create directory
path = client.create_path('testfolder', 'testfolder2', resource='directory')

# Rename (move) file
files = client.rename_file('/testfolder/file1.txt', '/testfolder2/file2.txt')
```

This is really early version of client. So, please fell free to contribute!