semvec/pypi-packages huggingface dataset:
ipyllogger 1.0.0
[SCHOOL PROJECT - PYTHON BASICS] | Minimum Python package to write logs in a file
Requires Python: >=3.8, <4

# Ipyllogger
[SCHOOL PROJECT - PYTHON BASICS] | Minimum Python package to write logs in a file

## Installation

```bash
pip install ipyllogger
```

## Tests

```bash
make test
```

## Usage

```python
from ipyllogger import Logger
from ipyllogger import level

logger = Logger()

# Log an error
logger.log("Hello World", level.ERROR)

# Log a warning
logger.log("Hello World", level.WARNING)

# Get all errors logs
print(logger.get_logs(level.ERROR))

# Get all warnings logs
print(logger.get_logs(level.WARNING))

```

## License
[MIT](https://choosealicense.com/licenses/mit/)

## Contributors
- [Makendy ALEXIS](https://github.com/RagnarBob)
- [Louis Midson LAJEANTY](https://github.com/midsonlajeanty)

## Project Director
- [Lub Lorry Lamisère](https://github.com/lemayzeur)
dsjobs 0.1.5
DSJobs simplifies accessing TAPIS on DesignSafe
Requires Python: >=3.8,<4.0

# DesignSafe Jobs

[![build and test](https://github.com/DesignSafe-CI/dsjobs/actions/workflows/build-test.yml/badge.svg)](https://github.com/DesignSafe-CI/dsjobs/actions/workflows/build-test.yml)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md)
[![Docs](https://img.shields.io/badge/view-docs-8A2BE2?color=8A2BE2)](https://designsafe-ci.github.io/dsjobs/dsjobs/index.html)

`dsjobs` is a library that simplifies the process of submitting, running, and monitoring [TAPIS v2 / AgavePy](https://agavepy.readthedocs.io/en/latest/index.html) jobs on [DesignSafe](https://designsafe-ci.org) via [Jupyter Notebooks](https://jupyter.designsafe-ci.org).

## Features

* Simplified TAPIS v2 Calls: No need to fiddle with complex API requests. `dsjobs` abstracts away the complexities.

* Seamless Integration with DesignSafe Jupyter Notebooks: Launch DesignSafe applications directly from the Jupyter environment.

## Installation

Install `dsjobs` via pip

```shell
pip3 install dsjobs
```

To install the current development version of the library use:

```shell
pip install git+https://github.com/DesignSafe-CI/dsjobs.git --quiet
```

## Example usage:

* [Jupyter Notebook Templates](example-notebooks/template-mpm-run.ipynb) using DSJobs.

* View [DSJobs API doc](https://designsafe-ci.github.io/dsjobs/dsjobs/index.html)

On [DesignSafe Jupyter](https://jupyter.designsafe-ci.org/):

Install the latest version of `dsjobs` and restart the kernel (Kernel >> Restart Kernel):

```python
# Remove any previous installations
!pip uninstall dsjobs -y
# Install 
!pip install dsjobs --quiet
```

* Import `dsjobs` library
```python
import dsjobs as ds
```

* To list all functions in `dsjobs`
```python
dir(ds)
```

## Documentation

View [DSJobs API doc](https://designsafe-ci.github.io/dsjobs/dsjobs/index.html)

To generate API docs:

```
pdoc --html --output-dir docs dsjobs --force
```

## Support

For any questions, issues, or feedback submit an [issue](https://github.com/DesignSafe-CI/dsjobs/issues/new)

## Development

To develop or test the library locally. Install [Poetry](https://python-poetry.org/docs/#installation). In the current repository run the following commands

```shell
poetry shell
poetry install
poetry build
```

To run the unit test
```shell
poetry run pytest -v
```

## License

`dsjobs` is licensed under the [MIT License](LICENSE.md).

## Authors

* Prof. Pedro Arduino, University of Washington
* Krishna Kumar, University of Texas at Austin
most-active-cookie 1.0.0
Tools for extracting most active cookie from csv
Requires Python: >=3.8,<4

# MostActiveCookie

MostActiveCookie is a command line program in Python to process the log file and return the most active cookie for specified day. This was a project proceeded for Quantcast.

In order to run this program, you will need a csv file with cookie and timestamp inside. The example for csv will be like following:

```
Cookie,Timestamp
AtY0laUfhglK3lC7,2018-12-09T14:21:00+00:00
AtY0laUfhglK3l67,2018-12-09T14:20:00+00:00
```

You would need Python with version at least `3.8` and csv file that includes appropriate cookie and timestamp with header.

## Quick Start

Scenario: Extract Most Active Cookie in 2018-12-09

```bash
> python3 -m most_active_cookie ./tests/resources normal_cookie_case.csv --date 2018-12-09
> AtY0laUfhglK3lC7
> AtY0laUfhglK3l67
```

## Testing

Test can be conducted using pytest

```bash
> pytest -v 
> cd tests/jobs #only when previous command does not work
> python3 -m pytest #only when previous command does not work
```

## Future Works
- Add support to other file formats
- Add alert for cookie input
- Consider adding logging