semvec/pypi-packages huggingface dataset:
timeout-timer 0.2.0
Timeout timer use signal or thread module, support nested loop

Timeout-Timer
===============

.. image:: https://img.shields.io/pypi/v/timeout-timer.svg
    :alt: PyPI version
    :target: https://pypi.org/project/timeout-timer/

Installation
--------------
::

    python setup.py install

Timeout Timer
--------------
    Add a timeout function to a function or statement and raise a exception if time limit runs out, can work as
    a context or decorator, support loop nesting and should use diff exception class, if use signal timer,
    outside timer will fired after the inside signal timer finish the work(raise exception or normal finish).

    Support signal timer and thread timer, signal timer can only work on main thread, if not on main thread use
    thread timer, thread timer may cost longer time than time out seconds settled if the user's function is busy
    in a system call (time.sleep(), socket.accept()...), exception will fired after system call done.

Usage
--------------
support nested loop
::

    from timeout_timer import timeout, TimeoutInterrupt

    class TimeoutInterruptNested(TimeoutInterrupt):
        pass

    def test_timeout_nested_loop_both_timeout(timer):
        cnt = 0
        try:
            with timeout(5, timer=timer):
                try:
                    with timeout(2, timer=timer, exception=TimeoutInterruptNested):
                        sleep(2)
                except TimeoutInterruptNested:
                    cnt += 1
                time.sleep(10)
        except TimeoutInterrupt:
            cnt += 1
        assert cnt == 2

use as decorator
::

    @timeout(2):
    def f():
        time.sleep(3)
        time.sleep(2)

License
-------

Code released under the `MIT license <http://en.wikipedia.org/wiki/MIT_License>`_
pyg3 0.0.0
An end to end differentiable finite element framework.
Requires Python: >=3.7

```python
In [1]: import pyg3

In [2]: d = pyg3.Domain()

In [3]: d
Out[3]: <pyg3.Domain at 0x7f0ebe6ec1f0>
```

Meaningful errors:

```python
In [4]: n = pyg3.Node()
-------------------------------------------------------------------------
TypeError                               Traceback (most recent call last)
<ipython-input-4-3e097288ae09> in <module>
----> 1 n = pyg3.Node()

TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. pyg3.Node(arg0: int, arg1: int, arg2: float, arg3: float)

Invoked with:

In [5]: n = pyg3.Node(0, 0, 1.0, 10.0)

In [6]: d.addNode(n)
Out[6]: True

In [7]: d.getNode(0)
Out[7]: <pyg3.Node at 0x7f0ebc6fca70>
```


Thread safe:

```python
In [8]: d2 = pyg3.Domain()

In [9]: d2.getNode(0)
In [10]: n2 = pyg3.Node(0,0,0.0,0.0)

In [11]: d2.addNode(n2)
Out[11]: True

In [12]: d2.getNode(0)
Out[12]: <pyg3.Node at 0x7f0ebe714e70>
```

```python
In [13]: d.getNode(0)
Out[13]: <pyg3.Node at 0x7f0ebc6fca70>
```

```python
In [14]: d.getNode(0) == n
Out[14]: True

In [15]: d2.getNode(0) == n2
Out[15]: True
```
idle 1.0.4
Alternavtive of notepad
Requires Python: >=3.6

### 🌟 Welocome to Idle Text Editor 🌟
| ![PyPI](https://img.shields.io/pypi/v/idle?style=for-the-badge) | ![PyPI - Format](https://img.shields.io/pypi/format/idle?style=for-the-badge) |
|------|-----|
| ![PowerShell Gallery](https://img.shields.io/powershellgallery/p/DNS.1.1.1.1?style=for-the-badge) | ![PyPI - License](https://img.shields.io/pypi/l/idle?style=for-the-badge) |
| ![Lines of code](https://img.shields.io/tokei/lines/github/devesh01032008/idle?style=for-the-badge) | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/devesh01032008/idle?style=for-the-badge) |

This is a program written in tkinter which acts as text editor.This can be used to edit file and as alternative of notepad.

### Photos of idle text editor
| ![Demo Photo](img/idle-text-editor.jpg) | ![Save Photo](img/save-as-photo.jpg) |
|------|-------|

### Steps to Download textEditor
```
#For Linux
sudo apt install python3
pip3 install idle

#For Windows
pip install idle

#For macOs
brew install python3
pip install idle
```
It would automatically launch when it is imported in program and nothing is required to launch this program
### How to use it?
```
import idle
# run this command in python Interpretator
# this will automatically launch idle display
```

### About The Author
![Devesh Sharma](img/devesh.jpeg)

I am Devesh Sharma.I read in class 9. I live in samalkha,panipat located in India has created this program as alternative of text editor such as notepad
This program aim to provide a graphical user interface to users which uses python.

### 🌟 Ways to contact me 🌟
[Github](https://www.github.com/devesh01032008/)<br />
[Email](mailto:deveshsharma1009@gmail.com)

### Show your support 🌟
```       
                  Licenced
                © Copyright 2021-22
                All rights reserved
```
ru-accent-poet 0.1.5
A package for putting stress marks in russian poetic texts
Requires Python: >=3.6

# ru_accent_poet

This is a tool for putting stress marks in russian poetic texts 

### Installation
```
pip install ru-accent-poet
```
### Usage example

To put stress marks in text
```
>>> from ru_accent_poet import accent_line
>>> accent_line('Это инструмент для разметки ударений')
Э'то инструме'нт для разме'тки ударе'ний
```

To put stress marks in files
```
>>> ru_accent_poet.write_file(['my_file_1.txt'])
```

This will return new file called 
"my_file.accented.txt" with the same text 
where stress marks are put
agora-python-sdk 3.4.2.1
Agora RTC Python SDK
Requires Python: >=3.6

# Agora Python SDK



Agora Live Interactive Video Streaming enables one-to-many and many-to-many audio or video live streaming with the Agora RTC SDK.

Agora Live Interactive Video Streaming is different from [Agora Video Call](https://docs.agora.io/en/Interactive%20Broadcast/product_live). In a video call, all users are the same role and can talk to each other freely. In a live video streaming, users can be the host or audience, where only the host can talk. For details, see this [FAQ](https://docs.agora.io/en/faq/profile_difference).

Different from the traditional CDN live broadcast, which only allows one-way communication from the hosts to the audience, the Agora RTC SDK empowers the audience to interact with the hosts by [becoming a host](https://docs.agora.io/en/Agora Platform/terms?platform=All Platforms#becoming-host), like a viewer jumping onto the stage in the middle of a play to perform.

The Agora RTC SDK is applicable to scenarios that encourage active engagement, such as game-playing, online classes for students in small groups, and Q&A sessions during E-commerce live streaming. You can also use this SDK for one-to-one video calls that require high image quality.

**For more detail information, please visit our [website](https://docs.agora.io/en/Interactive%20Broadcast/product_live?platform=All%20Platforms) and [GitHub repository](https://github.com/AgoraIO-Community/Agora-Python-SDK); and for some quick-start demos, please visit [Agora-Python-QuickStart](https://github.com/AgoraIO-Community/Agora-Python-QuickStart).**
tn-radio 0.1.11
Tamil Nadu Local Online Fm Station
Requires Python: >=3

# TAMILNADU ONLINE FM RADIO

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/THAVASIGTI/tn-radio)
[![PyPI](https://img.shields.io/pypi/v/tn-radio)](https://pypi.org/project/tn-radio)
[![Downloads](https://pepy.tech/badge/tn-radio)](https://pepy.tech/project/tn-radio)

In this package `tamil nadu` local online Fm Station


## INSTALL PACKAGE
``` console
sudo apt-get install vlc
pip install tn-radio
```
## IMPORT PACKAGE

``` python
Python 3.7.3 (default, Oct  7 2019, 12:56:13) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import tn_radio
obj = tn_radio.Radio()
```

## LIST OF FM STREAM

``` python
Python 3.7.3 (default, Oct  7 2019, 12:56:13) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import tn_radio
obj = tn_radio.Radio()

obj.list_fm()

0 Ohm Namashivaya[Chennai, India]
1 Namakkal Thedal FM[Namakkal, India]
2 Natrinai FM[Tiruchirappalli, India]
3 Pudukkottai Thedal FM[Pudukkottai, India]
4 முத்தமிழ் FM மேலூர்[Melur, India]
5 Virudhunagar Thedal FM[Virudhunagar, India]
```

## SET STREAM FM INDEX

``` python
Python 3.7.3 (default, Oct  7 2019, 12:56:13) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import tn_radio
obj = tn_radio.Radio()
obj.set_stream(3)
```

## PLAY FM 

``` python
Python 3.7.3 (default, Oct  7 2019, 12:56:13) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import tn_radio
obj = tn_radio.Radio()
obj.set_stream(3)
obj.play()
```

## STOP FM

``` python
     obj.stop()
```

## PAUSE FM

``` python
     obj.pause()
```

## CHANGE FM STREAM

``` python
     obj.set_stream(5)
```
Dict2Model 0.0.22
Dictionary to Model
Requires Python: >=3.6

# Dict2Model


![alt_text](https://raw.githubusercontent.com/DanielBNY/DictionaryModel/dev/extra/Logo.png)

The library returns an object with defined attributes in types from an input dictionary, 
with optional rules about types and more.

The declaration for the object variables and their types uses annotations:

        number: int
        question: bool

The mapping between variable and path inside the input dictionary are inside the source variables, in this format:
a string separated by '-' for each inner jump inside the dictionary
For example:

        NUMBER_SOURCE = "data-number"           # == dict_input["data"]["number"]
        QUESTION_SOURCE = "data-question"       # == dict_input["data"]["question"]

The optional parameter are:
    
    DISABLE_TYPE_EXCEPTIONS = True
    DISABLE_PATH_EXCEPTIONS = True

Type exception indicate to stop the object creation if theirs an error in matching types.
The second variable indicate to stop the object creation if a value don't exist in the source path.
When disabled variables are true the problematic variables are set to None. 
The default is DISABLE_TYPE_EXCEPTIONS and DISABLE_PATH_EXCEPTIONS as False.

Full example:

    class TestObj:
        number: int
        question: bool
        NUMBER_SOURCE = "data-number"
        QUESTION_SOURCE = "data-question"
        DISABLE_TYPE_EXCEPTIONS = True
        DISABLE_PATH_EXCEPTIONS = True


##Example:

>pip install SpecialModel


    from src.dict2model import Dict2Model
    
    
    class TestObj:
        number: int
        question: bool
    
        NUMBER_SOURCE = "data-number"
        QUESTION_SOURCE = "data-question"
        DISABLE_TYPE_EXCEPTIONS = True
        DISABLE_PATH_EXCEPTIONS = True
    
    
    dict_input_test = {
        "data": {
            "number": 123,
            "question": True
        }
    }
    
    factory = Dict2Model.Dict2Model(TestObj, dict_input_test)
    test_obj: TestObj = factory.run()
    print(test_obj.number, test_obj.question)
    print(type(test_obj.number), type(test_obj.question))
nexstar 0.0.5
Python interface for Celestron Nexstar telescopes

# Nexstar Python API

This code follows the NexStar Communication Protocol as described in NexStarCommunicationProtocolV1.2.pdf

This latest version of this code is located at https://github.com/circuitqed/nexstar

This code is forked from https://github.com/sidneycadot/nexstar

The main class is NexstarHandController and supports the following methods:

* getAlignmentComplete
* getDeviceVersion
* getGotoInProgress
* getLocation
* getModel
* getPosition
* getTime
* getTrackingMode
* getVersion
* gotoPosition
* passthrough
* setLocation
* setTime
* setTrackingMode
* slew_fixed
* slew_variable