semvec/pypi-packages huggingface dataset:
py-roboat-enviro 0.0.1
Python wrapper for the Roboat Environmental Data REST API.
License: MIT

# py-roboat-enviro

![Test](https://github.com/drewmee/py-roboat-enviro/workflows/Test/badge.svg)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/drewmee/py-roboat-enviro/blob/master/LICENSE)
[![Code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

A python wrapper for the Roboat environmental data RESTful API

## Installation

Install via pip:

    $ pip install py_roboat_enviro [--upgrade]

## Documentation

  Full documentation can be found [here](https://py-roboat-enviro.readthedocs.io/).

## Dependencies for Local Development

If you wish to build the local documentation or run unit tests, there are a few additional dependencies. Those can be installed by:

pip install -e ".[docs, tests]"

## Building docs locally
make -C docs clean
make -C docs html

## Run tests locally
pytest tests/test_api.py -s

## License

This library is licensed under the MIT license. The full text of the license can be found in this repository at LICENSE.txt.
EnvCausal 0.3.4
A Causal Inference Framework for Environmental Data Analysis
License: MIT

# EnvCausal
A Causal Inference Framework for Environmental Data Analysis

This repository contains all the necessary data and custom Python scripts to reproduce the results in the paper "Machine Learning–Aided Causal Inference Framework for Environmental Data Analysis: A COVID-19 Case Study".

Jupyter Notebook examples will be uploaded in future releases.

## Install
`pip install EnvCausal`

## Script descriptions
  _clustering.py_ -- A PCA-then-k-means clustering pipeline.</br>
  _causal_estimate.py_ -- A dowhy package wrapper, results will be written in a txt file<sup>1</sup>. </br>
  _recover_network.py_ -- A SAM model for Bayesian network recovery, adjacent matrix will be returned.  </br>
  _result_plot.py_ -- A couple of functions for result visualization.</br>

<sup>1</sup>Inspired by [Dowhy example: Iterating over multiple refutation tests](https://github.com/microsoft/dowhy/blob/master/docs/source/example_notebooks/dowhy_refuter_notebook.ipynb)</br>

## Acknowledgements
  This software is based in part on the following packages:</br>
  [DoWhy](https://github.com/microsoft/dowhy)</br>
  [EconML](https://github.com/microsoft/EconML)</br>
  [CausalML](https://github.com/uber/causalml)</br>
  [CausalDiscoveryToolbox](https://github.com/FenTechSolutions/CausalDiscoveryToolbox)</br>
  
  Thanks for the developers' effort on those fascinating causal inference tools!
PyPiPythonCodeThemeTest 1.0.0
This is a test for PyPi python formatting in markdown based READMEs.
License: MIT
Requires Python: >=3.6

This is a test for PyPi python formatting in markdown based README's.

```python
@decorator(param=1)
def f(x):
    """ Syntax Highlighting Demo
        @param x Parameter

        Semantic highlighting:
        Generated spectrum to pick colors for local variables and parameters:
         Color#1 SC1.1 SC1.2 SC1.3 SC1.4 Color#2 SC2.1 SC2.2 SC2.3 SC2.4 Color#3
         Color#3 SC3.1 SC3.2 SC3.3 SC3.4 Color#4 SC4.1 SC4.2 SC4.3 SC4.4 Color#5
    """
    s = ("Test", 2+3, {'a': 'b'}, f'{x!s:{"^10"}}')   # Comment
    f(s[0].lower())

class Foo:
    tags: List[str]
    def __init__(self: Foo):
        byte_string: bytes = b'newline:\n also newline:\x0a'
        text_string = u"Cyrillic Ð¯ is \u042f. Oops: \u042g"
        self.makeSense(whatever=1)
    
    def makeSense(self, whatever):
        self.sense = whatever

x = len('abc')
print(f.__doc__)
```

```py
@decorator(param=1)
def f(x):
    """ Syntax Highlighting Demo
        @param x Parameter

        Semantic highlighting:
        Generated spectrum to pick colors for local variables and parameters:
         Color#1 SC1.1 SC1.2 SC1.3 SC1.4 Color#2 SC2.1 SC2.2 SC2.3 SC2.4 Color#3
         Color#3 SC3.1 SC3.2 SC3.3 SC3.4 Color#4 SC4.1 SC4.2 SC4.3 SC4.4 Color#5
    """
    s = ("Test", 2+3, {'a': 'b'}, f'{x!s:{"^10"}}')   # Comment
    f(s[0].lower())

class Foo:
    tags: List[str]
    def __init__(self: Foo):
        byte_string: bytes = b'newline:\n also newline:\x0a'
        text_string = u"Cyrillic Ð¯ is \u042f. Oops: \u042g"
        self.makeSense(whatever=1)
    
    def makeSense(self, whatever):
        self.sense = whatever

x = len('abc')
print(f.__doc__)
```
dunsync 0.1.1
Identical to unsync, but supports cpu-bound continuation functions
License: MIT
Requires Python: >=3.8,<4.0
Keywords: unsync,asyncio,threading,multiprocessing,chaining,continuation

# dunsync

Identical to [unsync](https://github.com/alex-sherman/unsync), except that continuation callbacks receives the result of the Unfuture
rather than the Unfuture itself. This allows cpu-bound `@unsync` functions to be chained together with other regular functions and IO-bound `@unsync` functions, as long as the result is pickleble. 

## Example

```python
from dunsync import unsync
import asyncio
import time

@unsync()  # Will run in an asyncio event loop
async def download_data(url):
    await asyncio.sleep(1)
    return 'data'

@unsync(cpu_bound=True)  # Will run in a separate process
def process_data(data):
    time.sleep(1)
    return 'processed data'

@unsync()  # Will run in a separate thread
def store_processed_data(data):
    time.sleep(1)
    return 'Done'

tasks = [
    download_data(url).then(process_data).then(store_processed_data)
    for url in ['url1', 'url2', 'url3']
]

for task in tasks:
    print(task.result())
```

Replacing dunsync with unsync in the above example results in the error `TypeError: cannot pickle '_asyncio.Task' object`,
since the Unfuture wraps other objects (either `asyncio.Task`, as in this example, or `threading.Thread`) which cannot be pickled
in order to be passed to a separate process.

## Installation

Using pip:
```shell
pip install dunsync
```

Using pipenv:
```shell
pipenv install dunsync
```

Using poetry:
```shell
poetry add dunsync
```
pyminder 1.1.1
Beeminder power tools library
License: MIT
Requires Python: >3.6

# pyminder

I use Beeminder in a lot of my Python projects, and I find myself writting the same helper functions multiple times. 
This repository will serve as a place for me to store this functionality and make it accessible to other people.

## Installation

`pip3 install --user pyminder`

## Usage

```python
import time
from pyminder.pyminder import Pyminder

pyminder = Pyminder(user='[your username]', token='[your api token]')

goals = pyminder.get_goals()
goal = goals[0]

# Goal objects expose all API data as dynamic properties.
# http://api.beeminder.com/#attributes-2
slug = goal.slug
rate = goal.rate

# Goal objects also implement a handful of helper functions.
# Note: These functions probably contain bugs! Issues & pull requests welcome.
# https://github.com/narthur/pyminder/blob/master/pyminder/goal.py
now = time.time()
sum_ = goal.get_data_sum(now)
needed = goal.get_needed(now)
```

## Links

- [PyPI](https://pypi.org/project/pyminder/)
- [GitHub](https://github.com/narthur/pyminder)

## Development

- Set up a virtual environment in PyCharm so you aren't using the global Python env. This will allow you to avoid
conflicts of dependencies.

## Deployment

- Update version number in `setup.py` - [semantic versioning](https://semver.org/)
- `chmod +x deploy.sh`
- `./deploy.sh`

## Information

- [Beeminder API Reference](http://api.beeminder.com/#beeminder-api-reference)
- [How to Publish an Open-Source Python Package to PyPI](https://realpython.com/pypi-publish-python-package/)
- [Building and Distributing Packages with Setuptools](https://setuptools.readthedocs.io/en/latest/setuptools.html#basic-use)
quranpy 1.1
Python Package to interact with the glorious Qu'ran
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*

# quranpy
Python Package to interact with the Glorious Qur'an!

This package uses the [Al Quran Cloud](https://alquran.cloud/) API to bring you verses and surahs of the Qur'an.

**Start by importing the package:**
```py
import quranpy
```

**Features**:

<h3>Get verses of the Qur'an on demand</h3>

```py
verses = quranpy.show_verses(
      ayah="112:2-4",
      edition=quranpy.Editions.sahih_international
)
print(verses)
# will show Surah Ikhlas verses 2, 3 and 4 with Sahih International translation
```

```py
['Allah, the Eternal Refuge.', 'He neither begets nor is born,', 'Nor is there to Him any equivalent."']
```

<hr>



<h3>Easy info on Surahs of the Qur'an</h3>

```py
al_lail = quranpy.Surah(
      chapter=quranpy.Chapters.layl,
      edition=quranpy.Editions.pickthall # will show the Pickthall translations 
)
print(str(al_lail))
print(al_lail.number)
print(al_lail.arabic_name)
print(al_lail.name)
print(al_lail.translation)
print(al_lail.period)
print(al_lail.show_verses("1-3"))
```

```
Surah Al-Lail - The Night
92
سورة الليل
Al-Lail
The Night
Meccan
[By the night enshrouding, And the day resplendent, And Him Who hath created male and female,]
```

<hr>

<h3>Search for terms which appear in the Qur'an</h3>
      
```py
results = quranpy.Search(
      term="Moses",
      edition=quranpy.Editions.yusufali,
      surah=quranpy.Chapters.anbiya
)
print(results)
print(results.verses)
```

```
2 count(s) of "Moses" in Surah Al-Anbiyaa (in this edition)
[In the past We granted to Moses and Aaron the criterion (for judgment), and a Light and a Message for those who would do right,-, Before this We wrote in the Psalms, after the Message (given to Moses): My servants the righteous, shall inherit the earth."]
```

For more information, [read the documentation.](https://www.youtube.com/watch?v=oHg5SJYRHA0)<br>
See [test.py](https://github.com/niztg/quranpy/blob/master/test.py) for more in depth examples and ways to use the lib.

Assalamwalaikum warahmatullahi wa barakatuhu!
savirserver 0.1
Created by Savir Singh in the Choonka Community. Go to https://choonka.pagekite.me/ for more.
License: MIT
Keywords: savirserver,flask,python

SavirServer (Official)
=============================
Easily attach your HTML files to a server.

Video:

https://www.youtube.com/watch?v=kK2cEvpy2GM&t=24s

Channel:

https://www.youtube.com/channel/UC2HL-s1fNE7h9LsEXIgTJTg

Creators:
Savir Singh,
Choonka Community


You are not permitted to reproduce, share, or sell this Python module, without prior written permission from the creator, Savir Singh.
timeslot 0.1.2
Data type for representing time slots with a start and end.
License: MIT
Requires Python: >=3.6,<4.0

timeslot
========

Class for working with time slots that have an arbitrary start and end.

Completes the Python datetime module: datetime (a time), timedelta (a duration), timezone (an offset), **timeslot** (a range/interval).

Supports operations such as: overlaps, intersects, contains, intersection, adjacent, gap, union.

Initially developed as part of [aw-core](https://github.com/ActivityWatch/aw-core), and inspired by a [similar library for .NET](http://www.codeproject.com/Articles/168662/Time-Period-Library-for-NET).

You might also be interested in [`pandas.Interval`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Interval.html).


# Usage

```python
from datetime import datetime, timedelta
from timeslot import Timeslot

now = datetime.now()

slot = Timeslot(now, now + timedelta(hours=24)

assert slot.duration == timedelta(hours=24)

slot_large = Timeslot(now, now + timedelta(hours=24)
slot_small = Timeslot(now, now + timedelta(hours=1))

# The events definitely intersect
assert slot_large.intersects(slot_small)

# The larger even contains the smaller!
assert slot_large.contains(slot_small)
assert slot_small in slot_large

# You can also check if a datetime is within the slot
assert slot_large.contains(now)

# The union of a slot and a contained slot is equal to the larger slot
assert slot_large == slot_large.union(slot_small)

# Intersection
# TODO

# Gap
# TODO

# Adjacent
# TODO
```


# Synonyms

 - timerange (the name was already taken on PyPI)
 - timeperiod (already taken on PyPI)
 - time interval