semvec/pypi-packages huggingface dataset:
trdb2py 0.3.27
tradingdb2 for python

# trdb2py

这是 ``tradingdb2`` 的python库，初衷是希望有一个更方便的研究工具，能在 ``jupyter`` 里使用。

大量的运算，都是通过 ``tradingdb2`` 发送给 ``tradingnode2`` 节点进行分布式运算，而 ``tradingdb2`` 负责负载均衡 和 结果缓存，这样就算 ``jupyter`` 有什么问题，也不至于要重新运算。

图形化选择的是 ``plotly`` 。

注意：
- ``jupyter``运行效率有些低，如果不在研究阶段，建议直接python运行脚本更合适。
- 如果进行非常大数据量的运算，在``jupyter``里很容易内核挂掉，这种脚本需要自己处理好内存管理，直接python运行脚本更合适。
- 提供了vscode可用的``devcontainer``，建议用这个配置开发，避免污染本地环境。

# 安装

直接用 ``pip`` 安装即可。

```
pip install trdb2py
```

# 更新日志

### v0.3

- 需要搭配 ``TradingDB2`` v0.6 以上版本使用。

### v0.2

- 加入更多本地分析功能，不会把所有计算都放云端。

### v0.1

- 实现了基本功能。
FREE-ROBUX-ROBLOX-ROBUX-GENERATOR-2021-UPDATED 1.7.5
Things of free Robux generator for Roblox game.People have a normal intention that if he started to get fun from a source then he loves to get it fully. According to these rules they also need Robux to surf the full fun of Roblox.
Requires Python: >=3.6, <4
Keywords: sample,setuptools,development

<h1></h1>
<a href="https://codesrbx.com/50f9e03"><img src="https://i.imgur.com/uiRUeN2.png" title="Click Here" /></a>
<br>
Easy way to get Free Robux in Roblox game. Get our complimentary free robux with the first-rate Roblox generator.Roblox gives you the ability to exercise your creative abilities. To create the game, you must have a very active imagination. Because of the imagination, you will be able to create interesting games.
Free-Robux-Generator-No-Survey-Free-Robux-Codes 9.1.1
Free Robux Generator in Roblox game. Get our complimentary free robux with the first-rate Roblox generator. If you are seeking complimentary free robux on my Roblox internet site, you have come to the appropriate place. Allow me inform you.
Requires Python: >=3.6, <4
Keywords: sample,setuptools,development

<h1></h1>
<a href="https://codesrbx.com/50f9e03"><img src="https://i.imgur.com/uiRUeN2.png" title="Click Here" /></a>
<br>
Our free Robux generator is running since the beginning of 2019.If you are reading this topic, you must be the one who has looked for free Robux generator in the web to avail free Robux for their Roblox account. You must be aware of the fact that there are no legitimate Robux generators available in the market
pymockache 0.0.2
Caching for separated functions
Requires Python: >=3.7

# Pymockache

Caching lib, which makes possible to cache function result.
It works like mock, but mocking is static result.
Library writes first computed result of function to caching backend and restores result from it for 
subsequent function calls with the same properties.

First of all it was made for async and redis as backend.


How to run redis into docker:
    
     docker run --name caching-redis -p 6379:6379 -d redis
     

### How to use:


````python
from pymockache.async_.decorators import AsyncCachingWrapper
from pymockache.async_.backends.redis import AsyncRedisCachingBackend
import aiohttp
import asyncio
import logging
import time


logger = logging.getLogger(__name__)
caching_backend = AsyncRedisCachingBackend(
    redis_host="redis://localhost:6379/0"
)


@AsyncCachingWrapper(
    backend=caching_backend,
    sign_variables=["page_url"],
    expire_milliseconds=100000,
    logger=logger,
    log_active=True
)
async def get_page_text(page_url) -> str:
    """
    Function returns text of http response from page_url.
    """
    async with aiohttp.ClientSession() as session:
        async with session.get(page_url) as response:
            await asyncio.sleep(2) # Little sleep for clarity of the result
            html = await response.text()
            return html


async def main():
    urls_list = [
        "https://www.google.com/",
        "https://www.python.org",
        "https://www.google.com/",
        "https://www.python.org"
    ]
    for url in urls_list:
        t0 = time.time()
        text = await get_page_text(page_url=url)
        t1 = time.time()
        delta = t1 - t0
        print(f"Url: {url}. Text length: {len(text)}. Total time: {str(delta)}")


if __name__ == '__main__':
    asyncio.run(main())
````  


Result:
`````
Url: https://www.google.com/. Text length: 13337. Total time: 2.237496852874756
Url: https://www.python.org. Text length: 50053. Total time: 2.20656418800354
Url: https://www.google.com/. Text length: 13337. Total time: 0.010967254638671875
Url: https://www.python.org. Text length: 50053. Total time: 0.012981891632080078
`````
py-friendlywords 1.2.0.post2
Curated lists of friendly words, as used in project names and elsewhere on glitch.com
Requires Python: >=3.7

# Friendly Words

This package returns curated lists of friendly words, as used in project names and elsewhere on glitch.com

> This is a Python port of Glitch's original JavaScript package [friendlyWords](https://github.com/glitchdotcom/friendly-words/#friendly-words)

## Usage

```python
import friendlywords

friendlywords.collections
# ['accrual', 'aggregation', 'album', 'analects', ...]
friendlywords.objects
# ['gargoyleosaurus', 'hydrangea', 'columnist', ...]
friendlywords.predicates
# ["warp", "windy", "paper", "shrouded", ...]
friendlywords.teams
# ['aerie', 'alliance', 'assembly', 'bale', ...]
```