semvec/pypi-packages huggingface dataset:
threadedproxyobject 0.10
Threaded Proxy Object
License: MIT
Keywords: threads, ProxyObject


# Threaded Proxy Object

## pip install threadproxyobject

### Tested against Windows 10 / Python 3.11 / Anaconda


```PY
import pandas as pd
import random
from time import sleep
from threadedproxyobject import ThreadedProxyObject, ThreadedProxyObjectMultiExecute


def funct(x, y):
    return random.randint(x, y)


def funct2(x, y):
    return [x + y]


def funct3(x, y):
    while True:
        print(random.randint(x, y))
        sleep(1)


test = ThreadedProxyObject(funct, args=(1, 200))
test.start()
print(test)
sleep(1)
print((test) ** 10)

test2 = ThreadedProxyObject(funct2, args=(1, 200))
test2.start()
print((test2))
sleep(1)
test2.append(3)
print(test2)

test3 = ThreadedProxyObjectMultiExecute(fu=funct, args=(1, 200))
test3()
print((test3))
sleep(1)
print(test3 / 10)

test4 = ThreadedProxyObjectMultiExecute(fu=funct2, args=(1, 200))
test4()
sleep(1)
print(test4 * 10)

test5 = ThreadedProxyObjectMultiExecute(fu=funct3, args=(1, 200))
test5()
print((test5))
test5.kill()
test6 = ThreadedProxyObjectMultiExecute(fu=funct, daemon=False, args=(1, 200))
test6.start_timer_call(3)
sleep(4)
print((test6))
print(test6 + 10)
test6.stop_timer_call()


liste = [
    ThreadedProxyObjectMultiExecute(
        fu=funct, daemon=True, args=(1, 200)
    ).start_timer_call(3)
    for x in range(100)
]
sleep(2)
df = pd.DataFrame(liste)
print(df[0] * 2)

# 45
# 34050628916015625
# [201]
# [201, 3]
# 129
# 12.9
# [201, 201, 201, 201, 201, 201, 201, 201, 201, 201]
# 141
# N/A
# 151
# 161
# 0     128
# 1     314
# 2     220
# 3     102
# 4     220
#      ... 
# 95     72
# 96    314
# 97     24
# 98    144
# 99     24
# Name: 0, Length: 100, dtype: object

```
decades 0.1.0
A CLI tool to save recovery snapshots of your projects or files. ⌚
License: MIT
Requires Python: <4.0,>=3.8

# Decades ⌚

>[!WARNING]
> Decades is currently within development and has **NOT** reached **v1.0.0** release.

A CLI tool to save recovery snapshots of your projects or files. ⌚

## So... what is decades? 🤔

Decades *(in my words)* is a way to **locally** backup your projects or files **without a git repository** being present.
No matter if you have no internet connection, or if you don't have git installed, you can still use decades to save your projects or files.

Decades is designed to be...

- Easy to use 🧑
- Fast and Portable 📦 🚀
- Work with any OS 🐧
- and Secure 🛡️
- Local only* 🌍

> *Decades does not store any data on servers in which you already have. (For example, GitHub projects and more)*

## Installation 📦

>[!NOTE]
> Check the PyPI page [here](https://pypi.org/project/decades/) for installation instructions for latest versions of Decades.

To install Decades, simply run the following command:

```bash
pip install decades
```

This will install the latest **stable** version of Decades from **PyPI repository** to your system.

## Quick Start 🚀

Using Decades is quite simple. Just run the following command to take a, 'snapshot' of your project or file:

```bash
decades snap
```

This will create a **snapshot** of your project or file in the directory, `.decades`, to be saved and reused later.

You can view these snapshots and recover them by running the following command:

```bash
decades gallery
```

## License 🛡️

Decades is licensed under the **MIT License** which allows you, the developer, to use the software in any way you want.
StackAPI 0.3.1
Library for interacting with the Stack Exchange API
License: MIT
Keywords: stackexchange

This is a Python wrappers for the `Stack Exchange
API <http://api.stackexchange.com/>`__. This library supports Stack
Exchange API v2.3.

.. image:: https://readthedocs.org/projects/stackapi/badge/?version=latest
  :target: http://stackapi.readthedocs.io/en/latest/?badge=latest
  :alt: Documentation Status

This library has support for:

-  The Stack Exchange backoff parameter. It will automatically force a
   delay to match the parameter.
-  Read and write functionality via the API.
-  Can retrieve multiple pages of results with a single call and merges
   all the results into a single response.
-  Throws exceptions returned by the API for easier troubleshooting.
-  Utilizes `Requests <http://docs.python-requests.org/>`__.
-  `Stack Overflow for Teams <https://stackoverflow.co/teams/>`_ API


Example usage:
==============

Establish a connection to Stack Overflow and gather some comments
-----------------------------------------------------------------

::

    from stackapi import StackAPI
    SITE = StackAPI('stackoverflow')
    comments = SITE.fetch('comments')

The above, will issue a call to the
|comments|_. end point on Stack Overflow.

.. |comments| replace:: ``comments``
.. _comments: http://api.stackexchange.com/docs/comments

Much more detailed documentation is available on
`ReadTheDocs <http://stackapi.readthedocs.io/>`__.