semvec/pypi-packages huggingface dataset:
tempera 1.0.1
Convert and return temperature objects in set global scale.
Keywords: temperature conversion celsius fahrenheit kelvin centigrade climate control

# Tempera

## Description

Create temperature objects which return their value in a set 'global' unit scale - either Celsius, Fahrenheit, or Kelvin - using the method <b>getTemperature()</b>. When the Global temperature scale is changed, all temperature objects are returned in that scale.

I created this module to easily convert multiple temperatures displayed on a GUI when a user selects a different scale. I imagine it could be useful any time one has multiple persistant temperatures that need to undergo unit conversion at will.

## Using this Module

The Global temperature scale can be set with the method <b>self.setGlobalScale()</b>. All Temperature objects will return in this scale with <b>self.getTemperature()</b>. 

Set or return from a specific scale using <b>self.c</b> for Celsius, <b>self.f</b> for Fahrenheit, and <b>self.k</b> for Kelvin.

### Local Scales

If you want a specific Temperature object to return <b>self.getTemperature()</b> in a different scale regardless of the current global scale, use <b>self.setLocalScale()</b>. Can return to using global scale with <b>self.setLocalScale(False)</b> or <b>self.useGlobalScale()</b>.

### Rounding

Set the number of decimal places with the <b>decimal_place</b> keyword argument:
```python
from tempera import Temperature

temp1 = Temperature(12, decimal_place=2)
```
Or with <b>self.setDecimalPlace(int)</b>, where <i>int</i> is an integer. The default decimal place is 2. Setting to <i>None</i> will always return a rounded integer.

### Intervals

Temperature objects can also represent intervals instead of actual temperatures with the keyword argument <b>isinterval=True</b>. For example, if you wanted to represent an interval of 3 celsius units:
```python
temp_interval = Temperature(3, isinterval=True)

print(temp1.C + temp_interval.C)  # Adds 3 celsius to temp1 and prints
```

## How it functions

The temperature is stored internally in Celsius. All setting and getting of the temperature in different scales is a conversion from this 'private' celsius attribute. This attribute is not rounded. Any rounding is done when <b>getTemperature()</b> (or a similar method) is called, so setting a decimal place does not affect the internally stored temperature.
nameko-cron 0.1.0
Nameko cron extension
Requires Python: >=3.6

# Nameko Cron

Nameko `Cron` entrypoint fires based on a cron expression. It is not cluster-aware and
will fire on all service instances. The cron schedule is based on [croniter](http://github.com/kiorky/croniter).

## Usage

```python
from nameko_cron import cron


class Service:
    name ="service"

    @cron('*/5 * * * *')
    def ping(self):
        # executes every 5 minutes
        print("pong")
```

timezone-aware cron schedules are also available

```python
from nameko_cron import cron


class Service:
    name ="service"

    @cron('0 12 * * *', tz='America/Chicago')
    def ping(self):
        # executes every day at noon America/Chicago time
        print("pong")
```

by default, if a worker takes longer than the next scheduled run the worker will wait until
the task is complete before immediately launching a new worker. This behavior can be controlled
via the ``concurrency`` keyword argument.

``ConcurrencyPolicy.WAIT`` is that default behavior.

``ConcurrencyPolicy.ALLOW`` will spawn a worker regardless of whether existing workers are still running.

``ConcurrencyPolicy.SKIP`` will skip a run if the previous worker lapsed the next scheduled run.
simplelayout-yuloveyet 0.1.5
A simplelayout test for Python
Requires Python: >=3.5, <4
Keywords: Python,test

[![Work in Repl.it](https://classroom.github.com/assets/work-in-replit-14baed9a392b3a25080506f3b7b6d57f295ec2978f6f33ec97e36a161684cbe9.svg)](https://classroom.github.com/online_ide?assignment_repo_id=3680039&assignment_repo_type=AssignmentRepo)
# 3-simplelayout-package

## 简介

- 本次作业将大家完成的数据生成器进行打包，可供 pip 进行安装，发布到 [PyPI](https://pypi.org/)。同时使用 Sphinx 构建文档，发布到 [Read the Docs](https://readthedocs.org/)。


>**Sphinx** is a powerful documentation generator that has many great features for writing technical documentation including:
>- Generate web pages, printable PDFs, documents for e-readers (ePub), and more all from the same sources
>- You can use reStructuredText or Markdown to write documentation
>- An extensive system of cross-referencing code and documentation
>- Syntax highlighted code samples
>- A vibrant ecosystem of first and third-party extensions

- Python 生态的文档大都以 Sphinx 进行发布，例如 [Python 自身的官方文档](https://docs.python.org/3/)、[Pytorch 文档](https://pytorch.org/docs/stable/index.html) 等等。

- [Read the Docs](https://readthedocs.org/) 是一个可以自动化托管 Sphinx 文档的网站。

- Read the Docs 有上手教程，[参考](https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html)。

## 要求

- 将个人完成的 `2-simplelayout-generator` 项目中的 `simplelayout` 目录复制到本次作业的 `src` 目录下。
- 编写 `setup.py`
  - 参考[官方文档](https://docs.python.org/3/distributing/index.html#reading-the-python-packaging-user-guide)，与 [Packaging and distributing projects](https://packaging.python.org/guides/distributing-packages-using-setuptools/)，正确配置 `setuptools.setup()`，确保能被 `pip` 正确安装，要求
    - package 名称设置为 `simplelayout-github账号名`
    - 正确包含 `src/simplelayout` 这个 package
    - `install_requires` 包含 `simplelayout` 的相关依赖
    - 正确配置 `entry_points`，使命令 `simplelayout` 对应 `simplelayout/__main__.py` 中的 `main()` 函数
- 参考 [文档](https://packaging.python.org/guides/distributing-packages-using-setuptools/#packaging-your-project)，正确打包
- 参考 [文档](https://packaging.python.org/guides/distributing-packages-using-setuptools/#id77)，正确上传到 PyPI
- 根据[参考教程](https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html)，创建 `docs` 目录，并创建 `Sphinx` 项目。
  - 在执行 `sphinx-quickstart` 时输入相关信息
  - Sphinx 默认使用 rst 格式（[reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) ）编写文档，可进行配置使用 [Markdown](https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html#using-markdown-with-sphinx) 进行文档编写。
  - 选做：[参考](https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html) 配置 autodoc、napoleon 插件，自动生成 simplelayout 中的 docstring API。
  - 在本地生成正确的 Sphinx 文档
- 注册 [Read the Docs](https://readthedocs.org/)，将个人仓库中的文档正确托管
- 将个人项目 PyPI 仓库的链接、read the docs 链接以评论的方式发在 `Feedback` 上

## 注意

本次作业的在线测试分为以下部分：
1. 测试能否正确执行
  ```
  pip install .
  ```
  分值：1 分
1. 测试能否正确执行
  ```
  pip install .
  simplelayout -h
  ```
  分值：1 分

以上测试通过后，会在 `Feedback` 中打印相关信息（包括 PyPI 链接，生成图片），但不会对 `PyPI`、`Read the Docs` 自动测试
pipeline-notifier 0.0.2
A small example package
Requires Python: >=3.6

# Problem Statement 

Data scientists code up a lot of pipelines that can often take a long time due to long pre-processing sequences or massive
amounts of time required. And if errors occur, then the pipeline needs to be re-run. This means we usually want to be notified
as early as possible if errors occurred.

# So what is pipelinenotifier?

Pipeline notifier will send messages to your Slack/Discord/Keybase channel once you set up a webhook. Support can be added for 
more channels if desired. Feel free to ping me at jacky.wong@vctr.ai. It will send error messages so you can tell what is wrong
the moment it happens.

![](carbon.png)

# Installation

Simply run: 
```
python3 -m pip install pipeline-notifier
```

# Data Science Bots

As data scientists, you are running a lot of code over a large amount of time. This often means that that you want to be notified about things via mobile while you have applications running in the background. 

I ended up re-writing this code across a number of organisations.

```
from pipelinenotifier import KeyBaseNotifier

# Record your name and the project being worked on to properly track information
with KeyBaseBot("Bill Gates", "Modelling", "<webhook_url>") as bot:
    # Insert training loop/reader here.
    score = 0.5
    bot.send_message(f"Scored {score}.")

```

If there is an error, it will send the error message to your channel.
grab-from-libgen-willeyers 0.1.0
An easy API for searching and downloading books from Libgen.
Requires Python: >=3.7

# grab-from-libgen
An easy API for searching and downloading books from Libgen.

## Before Installing

**Be sure that you have installed Calibre and have added the necessary `ebook-convert` command to your path!**

If you don't, you will not be able to convert any ebooks!
grab-from-libgen 1.0.0
An easy API for searching and downloading books from Libgen.
Requires Python: >=3.7
Keywords: libgen ebooks books api scraper

# grab-from-libgen
An easy API for searching and downloading books from Libgen.

## Before Installing

**Be sure that you have installed Calibre and have added the necessary `ebook-convert` command to your path!**

[calibre](https://calibre-ebook.com/) is "a powerful and easy to use e-book manager". It's also free, open-source, and super easy to use.

You can install an calibre executable, through MacOS Homebrew, compile from source... pick your poison. They only thing you need to be sure of 
is the command `ebook-convert` is in your PATH.

## Install

Install by 

```
pip install grab-from-libgen
```

## Quickstart

The example below shows to grab the first book returned from a search and save it to your current working directory as a pdf.

```python
from grab_from_libgen import LibgenSearch

res = LibgenSearch('fiction', q='test')

res.first(convert_to='pdf')
```

This is an example the gets and downloads a book that matches a given title.

```python
from grab_from_libgen import LibgenSearch

res = LibgenSearch('fiction', q='test')

res.get(title='', save_to='.')
```

## Documentation

#### get_results

`get_results(self) -> OrderedDict`

Caches and returns results based on the search parameters the `LibgenSearch` objects was initialized with. Results are ordered
in the same order as they would be displayed on libgen itself with the book's id serving as the key.

#### first

`first(save_to: str = None, convert_to: str = None) -> Dict`

Returns a the first book (as a dictionary) from the cached or obtained results.

#### get

`get(**filters, save_to: str = None, convert_to: str = None) -> Dict`

Returns the first book (as a dictionary) from the cached or obtained results that match the given filter parameters.

The filter parameters must be pulled from the keys that the book dictionary object returns.
simlib 0.0.dev97
A toolkit for molecular dynamics simulations

<img src="simlib.svg" alt="simlib" height="200px">

a package for molecular dynamics simulations and analysis

<!--*master:*-->
<span style="white-space: nowrap;">
    <a href="https://pypi.org/project/simlib/"><img src="https://img.shields.io/pypi/v/simlib" /></a>
    <a href="https://travis-ci.com/github/LockhartLab/simlib"><img src="https://img.shields.io/travis/com/lockhartlab/simlib/master" /></a>
    <a href="https://codecov.io/gh/LockhartLab/simlib"><img src="https://img.shields.io/codecov/c/github/lockhartlab/simlib/master" /></a>
</span>

<!--
*dev:*  
<nobr><img src="https://img.shields.io/travis/com/lockhartlab/simlib/dev"  alt="build-status-dev"/></nobr>
<nobr><img src="https://img.shields.io/codecov/c/github/lockhartlab/simlib/dev" alt="coverage-dev"/></nobr>
<hr>
-->

<hr>

"Completed":  
`simlib.geometry`

<hr>


note that this package is **still in development**  
at this stage, I'm only building thing as they come to mind  
version 1.0 will be the first major release  
until then, consider this code heavily volatile

yet, install simply by calling ```pip install simlib```