semvec/pypi-packages huggingface dataset:
easyfactorlens 1.0.1
Easyfactorlens是一个使用Ricequant数据，用Alphalens进行因子IC检验的封装工具。
License: MIT

EASYFACTORLENS
##############

This lib can make IC test by data download from Ricequant.

Usage:

**step1**:Download 'download_data_from_ricequant.ipynb' from https://pan.baidu.com/s/1JOHi4w7nAypfIHKW_v1tng,

password:6666

**step2**:Download data from https://www.ricequant.com

**step3**:Set your parameters.

eg:

logger_path = './factor_logs.log'   # your log path

factor_info = "anything about your factor"

data_file = r'C:\Users\Administrator\Desktop\ricequant_local_alphalens\data'    # your data file path

predict_periods = (1, 5, 10)    # your factor predict periods

**step4**:Run analysis engine in your script.
asgi-background 0.2.2
Background tasks for any ASGI web framework
License: MIT
Requires Python: >=3.7,<4
Keywords: web-framework,http,asgi

# asgi-background

Background tasks for any ASGI framework.

## Example (Starlette)

```python
from asgi_background import BackgroundTaskMiddleware, BackgroundTasks
from starlette.applications import Starlette
from starlette.middleware import Middleware
from starlette.requests import Request
from starlette.responses import Response
from starlette.routing import Route


async def task(num: int) -> None:
    await anyio.sleep(1)
    print(num)


async def endpoint(request: Request) -> Response:
    tasks = BackgroundTasks(request.scope)
    await tasks.add_task(task, 1)
    return Response()


app = Starlette(
    routes=[Route("/", endpoint)],
    middleware=[Middleware(BackgroundTaskMiddleware)]
)
```

## Execution

Unlike Starlette, we do not execute background tasks within the ASGI request/response cycle.
Instead we schedule them in a `TaskGroup` that is bound to the application's lifespan.
The only guarantee we make is that background tasks will not block (in the async sense, not the GIL sense) sending the response and that we will (try) to wait for them to finish when the application shuts down.
Just like with Starlette's background tasks, you should only use these for short lived tasks, they are not a durable queuing mechanisms like Redis, Celery, etc.
For context, the default application shutdown grace period in Kubernetes is 30 seconds, so 30 seconds is probably about as long as you should allow your tasks to run.
asgi-lifespan-middleware 0.1.3
Middleware to handle ASGI lifespans
License: MIT
Requires Python: >=3.7,<4
Keywords: web-framework,http,asgi

# asgi-lifespan-middleware

ASGI middlewate to support ASGI lifespans using a simple async context manager interface.

This middleware accepts an ASGI application to wrap and an async context manager lifespan.
It will run both the lifespan it was handed directly and that of the ASGI app (if the wrapped ASGI app supports lifespans).

## Example (Starlette)

Starlette apps already support lifespans so we'll just be using the TestClient against a plain ASGI app that does nothing.

```python
from contextlib import asynccontextmanager
from typing import AsyncIterator

from starlette.testclient import TestClient
from starlette.types import ASGIApp, Scope, Send, Receive

from asgi_lifespan_middleware import LifespanMiddleware

@asynccontextmanager
async def lifespan(
    # you'll get the wrapped app injected
    app: ASGIApp,
) -> AsyncIterator[None]:
    print("setup")
    yield
    print("teardown")


async def app(scope: Scope, receive: Receive, send: Send) -> None:
    ...  # do nothing


wrapped_app = LifespanMiddleware(
    app,
    lifespan=lifespan,
)

with TestClient(wrapped_app):
    pass
```
xproc 1.4.1
Linux Proc File System Snooper
License: MIT
Requires Python: >=3.6,<4.0

# [xproc](https://github.com/hungrybirder/xproc)

## Install

```bash
pip install -U xproc
```

## Support commands

*   `xproc mem` or `xproc memory`

```bash
xproc mem
        TIME       KERNEL         USER      MemFree     MemTotal
    21:19:37    1345876kB   13143712kB   10079620kB   24624680kB
    21:19:38    1345964kB   13143796kB   10079612kB   24624680kB
    21:19:39    1345964kB   13143804kB   10079612kB   24624680kB
    21:19:40    1345964kB   13143808kB   10079644kB   24624680kB
    21:19:41    1345964kB   13143808kB   10079580kB   24624680kB
```

```bash
xproc mem -e "Active,Inactive,Active(anon),Inactive(anon),Active(file),Inactive(file)"
        TIME       Active     Inactive Active(anon) Inactive(anon) Active(file) Inactive(file)
    21:21:19    4397264kB    8727816kB     173164kB          128kB    4224100kB      8727688kB
    21:21:21    4397404kB    8727816kB     173300kB          128kB    4224104kB      8727688kB
    21:21:23    4397404kB    8727816kB     173300kB          128kB    4224104kB      8727688kB
    21:21:25    4397404kB    8727816kB     173300kB          128kB    4224104kB      8727688kB
    21:21:27    4397404kB    8727816kB     173300kB          128kB    4224104kB      8727688kB
```

*   `xproc vmstat`

```bash
xproc vmstat 1 5
        TIME allocstall_movable allocstall_normal compact_fail compact_free_scanned compact_isolated compact_migrate_scanned compact_stall compact_success
    10:15:01              40908                55            0               108344            75443                   43462            56              56
    10:15:02              40908                55            0               108344            75443                   43462            56              56
    10:15:03              40908                55            0               108344            75443                   43462            56              56
    10:15:04              40908                55            0               108344            75443                   43462            56              56
    10:15:05              40908                55            0               108344            75443                   43462            56              56
```

*   `xproc load`

```bash
xproc load 1 3
        TIME   LOAD_1_MIN   LOAD_5_MIN  LOAD_15_MIN   NR_RUNNING     NR_TOTAL     LAST_PID
    14:28:34         0.07         0.18         0.15            1          316      2073102
    14:28:35         0.07         0.18         0.15            1          316      2073102
    14:28:36         0.07         0.18         0.15            1          316      2073102
```