semvec/pypi-packages huggingface dataset:
code-time 0.0.2
A reusable timer utility for Python scripts
Requires Python: >=3.6

# Code-Time: A Reusable Timer Utility for Python Scripts

Code-Time is a lightweight and reusable Python package for measuring the execution time of scripts, functions, and code blocks. Itâ€™s perfect for developers who want to profile their Python code quickly.

## Features
- **Function Timing**: Use a decorator to measure the execution time of any function.
- **Code Block Timing**: Use a context manager to time specific blocks of code.
- **Script Timing**: Easily measure the total execution time of your Python script.

## Installation
Install Code-Time using pip:

```bash
pip install code-time
pylibagent 1.0.2
Library for building InfraSonar agents
Keywords: monitoring, infrasonar, agent

[![CI](https://github.com/infrasonar/python-libagent/workflows/CI/badge.svg)](https://github.com/infrasonar/python-libagent/actions)
[![Release Version](https://img.shields.io/github/release/infrasonar/python-libagent)](https://github.com/infrasonar/python-libagent/releases)

# Python library for building InfraSonar Agents

This library is created for building [InfraSonar](https://infrasonar.com) agents.

## Installation

```
pip install pylibagent
```

## Environment variables

Variable                    | Default                       | Description
----------------------------|-------------------------------|-------------------
`TOKEN`                     | _required_                    | Token to connect to.
`ASSET_ID`                  | _required_                    | Asset Id or file location where the Agent asset Id is stored _(e.g `123` or `/var/infrasonar/asset_id.json`)_.
`API_URI`                   | https://api.infrasonar.com    | InfraSonar API.
`VERIFY_SSL`                | `1`                           | Verify SSL certificate, 0 _(=disabled)_ or 1 _(=enabled)_.
`LOG_LEVEL`                 | `warning`                     | Log level _(error, warning, info, debug)_.
`LOG_COLORIZED`             | `0`                           | Log colorized, 0 _(=disabled)_ or 1 _(=enabled)_.
`LOG_FMT`                   | `%y%m...`                     | Default format is `%y%m%d %H:%M:%S`.
`DISABLED_CHECKS_CACHE_AGE` | `900`                         | Time in seconds before we poll again for reading the disabled checks.

## Usage (Demonized agent)

Building an InfraSonar demonized agent.

```python
from pylibagent.agent import Agent
from pylibagent.check import CheckBase

__version__ = "0.1.0"


class SampleCheck(CheckBase):

    key = "sample"
    interval = 300

    @classmethod
    async def run(cls):
        return {
            "type": [
                {
                    "name": "item",
                    "metric": 123
                }
            ]
        }


if __name__ == "__main__":
    collector_key = "sample"
    version = "0.1.0"
    checks = [SampleCheck]

    Agent(collector_key, version).start(checks)
```


## Usage (Non-demonized agent)

Building an InfraSonar agent.

```python
import asyncio
from pylibagent.agent import Agent

__version__ = "0.1.0"


async def main():
    version = "0.1.0"
    collector_key = "sample"
    check_key = "sample"

    agent = Agent(collector_key, version)
    await agent.announce()  # optionally, we can provide an initial asset name
    await agent.send_data(check_key, {
        "type": [
            {
                "name": "item",
                "metric": 123
            }
        ]
    })


if __name__ == "__main__":
    asyncio.run(main())
```
calculadora-test-package 0.0.1
Projeto de teste para entender como criar pacotes
Requires Python: >=3.8

# Calculadora

Description. 
O pacote calculadora Ã© utilizado para:
	- somar
	- subtrair
	- multiplicar
	- dividir

## InstalaÃ§Ã£o

Use o gerenciador de pacotes [pip](https://pip.pypa.io/en/stable/) para instalar a calculadora

```bash
pip install calculadora_test_package
```

## Como utilizar

```python
from calculadora_test_package import operacoes_basicas

operacoes_basicas.somar(1, 2)
operacoes_basicas.subtrair(1, 2)
operacoes_basicas.multiplicar(1, 2)
operacoes_basicas.dividir(1, 2)
```

## Autor
Wanessa Silva

## License
[MIT](https://choosealicense.com/licenses/mit/)
my-package-test-for-learn 0.1.1
A simple example Python package
Requires Python: >=3.6

# My Package

`my_package` is a simple Python package for demonstration purposes.

## Installation

```bash
pip install my-package-test-for-learn==0.1.0
```

or

```bash
pip install git+https://github.com/GauravKaklotar/my_package.git
```


## Usage

```python
from my_package import greet
```