semvec/pypi-packages huggingface dataset:
datacenter-datasdk-bin 0.1.5
datacenter_datasdk_bin
License: MIT

# datacenter_datasdk_bin

### INSTALL

```
pip install datacenter-datasdk-bin
```


### USAGE

```
from datacenter_datasdk_bin import get_price, auth

auth('xxx', 0, 'xxx','xxx')
data = get_price('600033.XSHG', 'cn', 'm1', start_date='2010-01-01', end_date='2021-01-01')
```

### API

#### *get_price()*
get kline data, include daily, minute and tick

**params**

code: str or list, single code or multi code as list

region: str, 'cn' or 'us'

frequency: str, represent frequency of kline, 'd1', 'm1', 'm5', 'm15', 'm30', 'm60', 'tick'(only in cn), 'd1_post'(only in cn), 'd1_raw'(only in cn)

start_date: datetime.datetime or datetime.date or str, start time of data, default '2005-01-01'

end_date: datetime.datetime or datetime.date or str, end time of data, default 0 o'clock of today

columns: list, set the data columns of return, default None

limit: int, set the rows of return from start_date, default None

connect: taos connect object, default the connect object after 'auth()'

**return**

dataframe


#### *auth()*
authorization of api, and get the taos connect object

**params**

host: str

port: int

user: str

password: str

**return**

taos connect object
pockethernet 0.7.0
Library and command line client for the Pockethernet network tester
License: MIT

Pockethernet
============

This is a python module that implements the bluetooth protocol used by the Pockethernet network tester. It also includes
a basic command line client.

.. code-block:: console

    $ pockethernet 00:13:43:xx:xx:xx
    Straight cable
    Pair voltages:
    - 0V
    - 0V
    - 0V
    - 0V
    PoE A: 0V
    PoE B: 0V
    No link established

    $ pockethernet 00:13:43:xx:xx:xx
    Cable inserted into ethernet port
    Pair voltages:
    - 0V
    - 0V
    - 0V
    - 0V
    PoE A: 0V
    PoE B: 0V
    Got 1000BASE-T full duplex link
    Link partner advertises:
                HD  FD
      10 MBIT   1   1
     100 MBIT   1   1
    1000 MBIT   1   1

The python API so far:

.. code-block:: python

    from pockethernet import Pockethernet, WiremapResult, PoEResult, LinkResult
    bluething = Pockethernet()
    bluething.connect("00:13:43:xx:xx:xx")
    wiremap = bluething.get_wiremap()
    print(wiremap.connections) # [0, 1, 2, 3, 4, 5, 6, 7, 8]

    link = bluething.get_link()
    print(link.speed) # 1000BASE-T
codequest22 1.1.3
Game for Code Quest 2022
License: MIT
Requires Python: >=3.6.0

# What is this?

A game for Code Quest 22.

If you are competing, you should have recieved a document containing all the documentation required. Please refer to that.

# Contributing

    pip install -e ./

    codequest22 -h

# Building

    pip install twine

    python setup.py sdist bdist_wheel

    twine upload dist/*
pylinal 0.1.5
Generic Linear Algebra in Python
License: MIT
Keywords: python

# PyLinal

Generic Linear Algebra in Python.

## Install

From PyPi
```sh
pip install pylinal
```

From git
```sh
pip install git+https://github.com/cospectrum/pylinal.git
```

## Usage


### Vector

```python
from pylinal import Vector


v = Vector([2, 3.1, 1])
w = Vector(2*i for i in range(3))

u = 2*(w - 5*v)  # Vector

dot = v.dot(w)

```


### Matrix

```python
from pylinal import Matrix, Vector


a = Matrix([
    [1, 3.1, 2],
    [2.4, 2, 5],
])

b = Matrix(range(3) for i in range(2))
assert b.shape == (2, 3)

c = a - b

ab = a.matmul(b.T)  # or a @ b.T
type(ab) == Matrix

v = Vector([2, 1.2, 3])

av = a.matmul(v)  # or a @ v
type(av) == Vector

```


### Functions

#### MatrixFunc

MatrixFunc is a callable Matrix where each element is a function.
It wraps each element in a primitive called "Func".
The sum and multiplication by a scalar will be a MatrixFunc again.

```python
from math import sin, cos, pi
from pylinal import MatrixFunc, Vector


# 3D rotation
rotation = MatrixFunc([
    (cos, lambda x: -sin(x), 0),
    (sin, cos, 0),
    (0, 0, 1)
])

rotate_45 = rotation(pi/4)

v = Vector([1, 1, 1])
u = rotate_45 @ v

```


#### VectorFunc

VectorFunc is similar to a vector-valued function (of several variables).
It wraps each element in a Func.
The sum and multiplication by a scalar will be VectorFunc again.

```python
from math import sin, cos
from pylinal import VectorFunc


parabola = VectorFunc([lambda t: t, lambda t: t**2])
circle = VectorFunc([cos, sin])

curve = parabola + circle

assert curve(1) == (parabola + circle)(1)

```

VectorFunc also has a grad attribute.
Operations will change grad (if grad is not None).

```python
from math import sin, cos
from pylinal import VectorFunc


df = VectorFunc([1, lambda t: -cos(1/t) + 2*t*sin(1/t)])
f = VectorFunc([lambda t: t, lambda t: t**2 * sin(1/t)], grad=df)

g = 3*f

assert g(1) == 3*f(1)
assert g.grad(1) == 3*f.grad(1)

```