semvec/pypi-packages huggingface dataset:
projectscheduler 0.6.0
Simple project scheduling tool
License: MIT
Requires Python: >=3.6,<4.0
Keywords: packaging,poetry

Simple Scheduler
================
I occasionally do freelancing work and needed a simple way to build
out a notional schedule based on estimated task length. There are many
Gantt chart builders out there, but they typically require choosing
start dates for each individual task. In addition, all the online builders
make you enter the tasks in their own interface (clunky), cost money after
some short trial (too much overhead), or don't offer an easy way to share
the schedule with someone else.

Simple Scheduler asks for just a CSV of tasks, how long they'll take,
who is going to work on each task, and any dependencies of each task.
From there it spits out an SVG with each task scheduled based on the rules:

- Tasks are scheduled in the order they are in the CSV.
- A resource (person) can only perform one task at a time.
- A task's dependencies must be complete before it can begin.
- (by default) No work is done on weekends.

Installation
============

.. code:: shell

   pip install projectscheduler

Usage
=====

Create a CSV with your tasks in the format:

===================  ======== ========== =========================
Task                 Duration Resources  Dependency
===================  ======== ========== =========================
Name of task 1       6        Person 1
Some other task      3        Person 1
Some other task 3    12       Person 2   Name of task 1
===================  ======== ========== =========================

Where duration is given in days. Multiple resources can be separated by a "/". (I.E, "Person1/Person2").

An `example csv`_ can found found in the repository. It builds into:

.. image:: https://raw.githubusercontent.com/traherom/simple-scheduler/master/example/example.png
        :alt: Example output
        :width: 100%
        :align: center

(We are displaying the PNG here so that GitHub displays it. The SVG_ is what was actually produced.)

.. _SVG: https://raw.githubusercontent.com/traherom/simple-scheduler/master/example/example.svg
.. _example csv: https://raw.githubusercontent.com/traherom/simple-scheduler/master/example/example.csv

.. code:: shell

   schedule input.csv output.svg

TODO
====
1. Multiple dependencies for a task?

Credits
=======
Python-gantt_ was the original inspiration for this project. I originally built the scheduler around it,
but didn't like certain aspects of the API. This tool uses the rendering
code from that project.

.. _Python-gantt: http://xael.org/pages/python-gantt-en.html
physalia 0.0.1.dev122
Test suite for energy consumption
License: MIT

[![Build Status](https://travis-ci.org/TQRG/physalia.svg?branch=master)](https://travis-ci.org/TQRG/physalia)
[![PyPI version](https://badge.fury.io/py/physalia.svg)](https://badge.fury.io/py/physalia)
[![PyPI downloads](https://img.shields.io/pypi/d/physalia.svg)](https://pypi.python.org/pypi/physalia)
[![PyPI status](https://img.shields.io/pypi/status/physalia.svg)](https://pypi.python.org/pypi/physalia)
[![Code Health](https://landscape.io/github/TQRG/physalia/master/landscape.svg?style=flat)](https://landscape.io/github/TQRG/physalia/master)


# Physalia

Energy measurement framework for Mobile Apps.

More info and documentation in the [website](https://tqrg.github.io/physalia/).

## Install

```
$ pip install https://github.com/luiscruz/PyMonsoon
$ pip install physalia
```

## Example

The simplest way to measure something:

```
from physalia.power_meters import MonsoonPowerMeter
from time import sleep
 
 # change voltage and serial number accordingly:
power_meter = MonsoonPowerMeter(voltage=3.8, serial=12886) 
power_meter.start()
sleep(2) # some work
energy_consumption, duration, error_flag = power_meter.stop()
```

Several things need to be done to make sure we can measure energy consumption in Android devices (e.g., setup WiFi control and disable USB).
Physalia takes care of that already:



````
from physalia.power_meters import MonsoonPowerMeter
from physalia.energy_profiler import AndroidUseCase
from time import sleep

 # change voltage and serial number accordingly:
power_meter = MonsoonPowerMeter(voltage=3.8, serial=12886)

def run(usecase):
	sleep(2) # some work
	
use_case = AndroidUseCase(
  'login',
  'path/to/apk',
  'com.test.app',
  '0.0',
  prepare=None,
  run=run,
  cleanup=None
)
measurement = use_case.run(power_meter=power_meter)
print(measurement)
````

## Contributing

Please help us improve this library!

If you have ideas for new features or anything behaves unexpectedly please report an issue.

If you find an issue you can actually help fixing please make a pull request of your code.

### Running tests

To run all tests and checks locally run:

`$ detox -e py27,py36`