semvec/pypi-packages huggingface dataset:
ptick-ptock 1.0.1
tick tock for python
Requires Python: >=3.8

# Ptick Ptock

[![Tests](https://github.com/ADorigi/ptick-ptock/actions/workflows/tests.yaml/badge.svg?branch=main)](https://github.com/ADorigi/ptick-ptock/actions/workflows/tests.yaml)  

## Summary

![Ptick-Ptock](https://media1.giphy.com/media/Qz4RaxcOh4qndWOG5N/giphy.gif)

A simple stopwatch imitating tool inspired by tic toc in MATLAB 

Have you been a victim of scrutinous time calculation in python?  
The constant time subtractions and manipulations.....? I know.  
This library masks those steps for you; "abstracts it" as you would term it.  

Link to PyPi [Ptick-Ptock](https://pypi.org/project/ptick-ptock/)

<img src="https://i.ibb.co/hgpyfk5/honest-work.jpg" alt="HonestWork" width="400"/>

## Project Timeline

<img src="https://i.ibb.co/cgM9Z3T/Timeline.jpg" alt="Timeline" width="1000"/>  

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install ptick-ptock.

```bash
pip install ptick-ptock
```
## Usage

```python
from ptick_ptock import ptick_ptock

# returns ptick-ptock object
object = ptick_ptock()

#starts time calculation
object.ptick()

#returns elapsed time
object.datetime_ptock()

#prints elapsed time
object.print_ptock()
```

## License
[MIT](https://choosealicense.com/licenses/mit/)



\* P.S. : The timeline was a joke 🤓 \*
sandinvest 0.1.9
SandInvest是一款专注于量化开发的金融数据接口，开始体验吧！
Requires Python: >=3.7
Keywords: SandInvest,Data API

# <img src="http://www.sandquant.com/icon/sandquant_icon_pure.png" width="50px" height="50px" /> SandInvest

SandInvest是一款专注于量化开发的金融数据接口，开始体验吧！



## 开始

1.   首次使用`sandinvest`需要先进行**注册**，登录信息将存储在本地电脑，以便用于下次导入时自动登录，注册无论信息正确与否都会打印`Register Success!`，表明注册信息已经正确存储，但还未验证：

```python
>>> import sandinvest as si 
>>> si.register('your_account', 'your_password') 
Register Success!
```

<br>

2.   当再次导入`sandinvest`模块，将自动调用注册信息进行登录，并打印验证结果：

>   <img src="http://www.sandquant.com/icon/warning.png" width="25px" height="25px" />如果没有打印任何东西，表明没有注册成功，需要重新调用`register`进行注册

-   如果注册信息正确<img src="http://www.sandquant.com/icon/check.png" width="25px" height="25px" />，将打印`Welcome, SandInvest!`；

```python
>>> import sandinvest as si
Welcome, SandInvest!
```

-   如果注册信息错误<img src="http://www.sandquant.com/icon/singleWrong.png" width="25px" height="25px" />，将打印`account, password 参数错误，账号密码验证失败！`，程序不会报错，但后续将无法调用接口；

```python
>>> import sandinvest as si
account, password 参数错误，账号密码验证失败！
```

<br>

3.   如果每次需要登录不同的账号，可以通过`login`函数进行**手动登录**，但这显然会麻烦一点，因为你每次都需要输入账号密码：

-   如果登录信息正确<img src="http://www.sandquant.com/icon/check.png" width="25px" height="25px" />，将打印`Welcome, SandInvest!`；

```python
>>> import sandinvest as si
>>> si.login('your_account', 'your_password') 
Welcome, SandInvest!
```

-   如果登录信息错误<img src="http://www.sandquant.com/icon/singleWrong.png" width="25px" height="25px" />，将抛出`AttributeError`错误；

```python
>>> import sandinvest as si
>>> si.login('wrong_account', 'wrong_password') 
Traceback (most recent call last):
	...
AttributeError: account, password 参数错误，账号密码验证失败！
```