semvec/pypi-packages huggingface dataset:
schedule-jobs 0.0.4
A Schedule Jobs Library
Requires Python: ~=3.6

Usage
~~~~~

::


    $ mkdir  path  && cd path
    $ virtualenv venv --no-site-packages
    $ . venv/bin/activate
    $ mkdir jobs
    $ touch jobs/__init__.py

``jobs/date_job.py``

.. code:: python

    from schedule_jobs.core.base_job import BaseJob
    import datetime

    class DateJob(BaseJob):
        def run(self, *args, **kwargs):
            print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))

``main.py``

.. code:: python


    from schedule_jobs.app import App


    def main():
        print("main")
        app = App()
        app.schedule()


    if __name__ == "__main__":
        main()

dir
^^^

::

        path
        path/jobs/__init__.py
        path/jobs/date_job.py
        path/main.py

finally
^^^^^^^

::


    $ python main.py
fitness-tools 0.1.1
Healthy Lifestyles With Python
Keywords: health,wellness,fitness,exercise,nutrition

Fitness Tools
=============

**Healthy Lifestyles With Python**

.. introduction-start

Introduction
------------

Thank you for your interest in this project.

For more in depth coverage see the `complete documentation`_.

.. _complete documentation: https://fitness-tools.readthedocs.io

Fitness Tools is a Python package that facilitates healthy lifestyles.
Whether you're a wellness professional, veteran gym rat, or just starting your fitness journey this package will benefit you.

While being healthy requires personal investment, it also requires some complex calculations like:

    1. If can lift **x** pounds for **y** repetitions how many pounds can I lift **z** times?

    2. If I need to eat **x** calories per day how many calories should I eat at each meal?
       How do these calories equate to grams of fat, protein, and carbohydrates per day and per meal?

    3. What is my bodyfat percentage base on skinfold measurements?

Before calculating everything by hand give this package a try.

.. introduction-end

.. quickstart-start

Quick Start
-----------

Fitness Tools is made with 100% pure, organic Python.

   - **There are no third party dependencies.**
   - **Only Supports Python 3.**

To get it now type this command:

.. code-block:: bash

   pip install fitness-tools


And you will be well on your way solving these problems:

.. quickstart-end

* `Calculating Body Composition`_

* `Guessing Repetitions`_

* `Macronutrient Assignments`_

.. _Calculating Body Composition: https://fitness-tools.readthedocs.io/en/latest/bodycomposition_details.html
.. _Guessing Repetitions: https://fitness-tools.readthedocs.io/en/latest/exercise_details.html
.. _Macronutrient Assignments: https://fitness-tools.readthedocs.io/en/latest/macronutrients_details.html


How To Contribute
-----------------

* First, read our `contributing guidelines`_.

* Next, read our changelog_ to see where this project has been.

* Finally, read our roadmap_ to see where this project is headed.

All skill levels are welcome and our maintainers will help you in whatever way we can.

.. _contributing guidelines: https://fitness-tools.readthedocs.io/en/latest/contributing-link.html
.. _changelog: https://fitness-tools.readthedocs.io/en/latest/changelog.html
.. _roadmap: https://fitness-tools.readthedocs.io/en/latest/roadmap.html

License
-------

This project is licensed under the `Apache 2.0 License`_.

.. _Apache 2.0 License: https://fitness-tools.readthedocs.io/en/latest/license-link.html
mockr 0.36
A Python library for prototyping MapReduce jobs
Requires Python: >=3
Keywords: mockr mapreduce map reduce education

[![Documentation Status](https://readthedocs.org/projects/mockr/badge/?version=latest)](https://mockr.readthedocs.io/en/latest/?badge=latest)

# mockr

mockr is a Python library for writing MapReduce jobs in an Educational setting. It is intended to be used as a
conceptual teaching tool.

mockr provides an interface for defining and running MapReduce locally. Simply define your map and reduce functions,
input your data and call the run function. Everything is run sequentially and locally.

## Installation

    pip install mockr

## Documentation

Full documentation available here [https://mockr.readthedocs.io/](https://mockr.readthedocs.io/)

### Streaming Jobs

StreamingJob class which expects the input to be a byte stream of characters. The chunks of data are separated by
newline ("\n") characters. Each line is sent to a separate map worker.

### Native Python Sequence Jobs

PythonJob class expects input to be a Collections.abc.Sequence type object e.g. Python List. Python Jobs provide two
exection methods:

- the sequence is divided into chunks and each chunk is sent to a separate map worker
- each item in the list is individually sent to a dedicated map worker

### Pandas Jobs

PandasJob class expects input to be a Pandas DataFrame. The rows of the data frame are equally divided into chunks and
each chunk is sent to a separate map worker


## Example Usage

    import re
    from mockr import run_stream_job

    WORD_RE = re.compile(r"[\w']+")

    def map_fn(chunk):
        # yield each word in the line
        for word in WORD_RE.findall(chunk):
            yield (word.lower(), 1)

    def reduce_fn(key, values):
        yield (key, sum(values))

    input_str = "Hello!\nThis is a sample string.\nIt is very simple.\nGoodbye!"

    results = run_stream_job(input_str, map_fn, reduce_fn)

    print(results)


Output:

    [('hello', 1), ('this', 1), ('is', 2), ('a', 1), ('sample', 1), ('string', 1), ('it', 1), ('very', 1), ('simple', 1), ('goodbye', 1)]