semvec/pypi-packages huggingface dataset:
unify-sdk 4.2.6
Unify Python SDK
Requires Python: >=3

# Element Unify Python SDK

The Unify Python SDK is a library to interact with Element Unify. This SDK is intended for
developers who are building connectors and automation software that interfaces with
Element Unify.

## User Information

This section is intended for users of the Unify Python SDK. This includes
developers who are building connectors, integrations, and automation that interfaces
with Element Unify. For developers looking to contribute to the SDK, see the
[Developer Information](#developer-information) section.

## Installation
You can install the Unify Python SDK from [PyPI](pypi.org/project/unify-sdk):

`pip install unify-sdk`

### Using the Unify Python SDK with virtualenv

This assumes you have installed an appropriate version virtualenv, python, and
other associated tools. This also assumes you have an existing python project
you'd like to import into, in this case `my-project`.

    mkdir path/to/my-project; cd path/to/my-project
    virtualenv venv
    source venv/bin/activate
    echo unify-sdk >> requirements.txt

Then, in your python import section add the following line:

    from unify.apimanager import ApiManager

### Documentation
Developer guide is found in the Unify API Documentation Portal under the Unify Python SDK section.

1. Navigate to your instance of Element Unify.
2. Log in and select your organization.
3. From the top-right menu, click on the Support icon and select API Documentation.

### Asset Access
In order to use the Unify Access package, please install psycopg2-binary.

    pip install psycopg2-binary

## Developer Information

This section is intended for developers working to extend the Unify Python SDK.

### Developer Guide

1. Fork this repository.
2. Revise files with your contributions.
3. Follow styling guides. See [Python style guide](#python-style-guide).
4. Check for lint warnings. See [Lint checking](#lint-checking).
5. Create a pull request with description of your changes.

### Python style guide

Please use the following Python style guide
[Google Python Styling guide](https://google.github.io/styleguide/pyguide.html)
### Lint checking

We usy pylint to verify lint warnings, our build system requires a linter score
of >=9.0 to pass successfully.
 
To locally check you changes
```
pip install pylint
pylint dir/to/the/file.py
```
lienv 0.5.0
A tool to easily get typed values out of strings stored in environment variables.
Requires Python: >=3.8
Keywords: environment,variables,types,parsing,rust

## LiEnv: A simple yet useful library
<a href="https://github.com/liander-medeiros/lienv-py/actions">
    <img src="https://github.com/liander-medeiros/lienv-py/workflows/CI/badge.svg" alt="CI">
</a>
<a href="https://pypi.org/project/lienv/">
    <img src="https://img.shields.io/pypi/v/lienv.svg" alt="PyPi Latest Release"/>
</a>

LiEnv is a tool to easily get typed values out of strings stored in environment variables.

- Simplifies the sometimes tedious task of parsing strings to typed variables
- Provides a way to do it uniformly througout the project
- Aims to prevent unwanted behaviour caused by typos, errors or malicious content in environment variables

### Currently supported Python types:
- Integers and Floats
- Dicts
- Lists
- Tuples
- Booleans

## Example

```python
>>> import lienv
>>> integer = lienv.get(int, "SOME_INTEGER") # SOME_INTEGER="42"
>>> decimal = lienv.get(float, "SOME_FLOAT") # SOME_FLOAT="2.4"
>>> dictionary = lienv.get(dict, "SOME_DICT") # SOME_DICT="{'lienv': 42}"

>>> print(f"{integer} => {type(integer)}")
42 => <class 'int'>

>>> print(f"{decimal} => {type(decimal)}")
2.4 => <class 'float'>

>>> print(f"{dictionary} => {type(dictionary)}")
{'lienv': 42} => <class 'dict'>
```

## Setup

Install the latest version with:

```sh
pip install lienv
```

## TODO

- [ ] Parse types without directly using python's eval
- [ ] Implement unit tests in Rust
- [ ] Figure out how to test the Python module
- [ ] Change default integers and floats to 32 bit based on architecture
- [ ] Add wrappers for unsigned integer parsing
- [ ] Add wrappers for 8 and 16 bit numbers


## Contributing
I'll gladly accept feedback and contributions. 

Although this project's purpose was to solve problems that at first seemed too simple, the practicality it provided to me was motivation enough to turn it into a library so maybe more people could benefit from it.

I am yet to be proficient in Rust, so pardon my silly mistakes.

<div align="center">
    <img src="https://media.npr.org/assets/img/2023/05/26/honest-work-meme-cb0f0fb2227fb84b77b3c9a851ac09b095ab74d8-s1100-c50.jpg" width="300px"/>
</div>
jiushu_logger_flask 1.0.2
Jiushu logger for Flask routes.
Requires Python: >=3.7

![logo.png](logo.png)

# jiushu-logger-flask【九书 Flask 路由专用】

## 简介

JF 专用格式化 logger 的 Flask 路由特供版，专门输出请求日志。

## 使用方法

```python
import orjson
from flask import Flask, g

from jiushu_logger_flask import RouteLogging

app = Flask(__name__)

# Logging for routes.
# You can set which route should be skipped, 
#   or which pattern the route matches should be skipped.
RouteLogging(app,
             skip_routes=['/api/health'],
             skip_regexes=[r'''^.*skip.*$'''])


@app.get('/api/test')
def _test():
    # You can get trace id of *this* request.
    # If apache-skywalking is used, this trace_id will be the ID tracing by skywalking.
    print(g.trace_id)
    return b'Hello, world!', 200


@app.get('/api/health')
def _health():
    return orjson.dumps({'status': 'UP'}), 200, {'Content-Type': 'application/json'}


app.run('0.0.0.0', 8080)
```
lima1983analysis-sebastian-achim-mueller 0.0.4
Sensitivity, Ti-Pei Li and Yu-Qian-Ma, APJ 272:317-324, 1983

########################################
Li and Ma, 1983, Estimating Significance
########################################
|TestStatus| |PyPiStatus| |BlackStyle| |PackStyleBlack|


A python implementation of the equations 9, and 17 proposed by Li and Ma in 1983.

.. code-block:: bib

    @article{lima1983analysis,
        title={Analysis methods for results in gamma-ray astronomy},
        author={Li, Ti-Pei and Ma, Yu-Qian},
        journal={The Astrophysical Journal},
        volume={272},
        pages={317--324},
        year={1983}
    }

The names of the variables are adopted from Li and Ma.

*******
Install
*******

.. code-block:: bash

    pip install lima1983analysis_sebastian-achim-mueller


**************
Significance S
**************

Estimate the significance ``S`` of a detection.

.. code-block:: python

    estimate_S_eq9(N_on, N_off, alpha)
    estimate_S_eq17(N_on, N_off, alpha)


*****************
Signal-Counts N_s
*****************

Estimate how much signal-counts ``N_s`` are required to claim a detection.

.. code-block:: python

    estimate_N_s_eq9(N_off, alpha, S)
    estimate_N_s_eq17(N_off, alpha, S, margin=1e-6, max_num_iterations=1000, N_s_start=None)


.. |TestStatus| image:: https://github.com/cherenkov-plenoscope/lima1983analysis/actions/workflows/test.yml/badge.svg?branch=main
    :target: https://github.com/cherenkov-plenoscope/lima1983analysis/actions/workflows/test.yml

.. |PyPiStatus| image:: https://img.shields.io/pypi/v/lima1983analysis_sebastian-achim-mueller
    :target: https://pypi.org/project/lima1983analysis_sebastian-achim-mueller

.. |BlackStyle| image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

.. |PackStyleBlack| image:: https://img.shields.io/badge/pack%20style-black-000000.svg
    :target: https://github.com/cherenkov-plenoscope/black_pack