semvec/pypi-packages huggingface dataset:
kll 0.5.7.16
KLL Compiler
Requires Python: >=3.5

# kll - keyboard layout language

[![GitHub Action Status](https://github.com/kiibohd/kll/workflows/Python%20package/badge.svg)](https://github.com/kiibohd/kll/actions)
[![PyPI version](https://badge.fury.io/py/kll.svg)](https://badge.fury.io/py/kll)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/kiibohd/kll.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kiibohd/kll/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/kiibohd/kll.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kiibohd/kll/context:python)

[![Visit our IRC channel](https://kiwiirc.com/buttons/irc.freenode.net/input.club.png)](https://kiwiirc.com/client/irc.freenode.net/#input.club)

[Visit our Discord Channel](https://discord.gg/GACJa4f)

## If you're trying to compile keyboard firmware, you want [THIS](https://github.com/kiibohd/controller/)



## KLL Compiler

Most current version of the [KLL Spec](https://github.com/kiibohd/kll-spec).

Uses [funcparserlib](https://github.com/vlasovskikh/funcparserlib)


## Dependencies

Dependencies can be installed manually, or by using a pipenv.

* [layouts-python](https://github.com/hid-io/layouts-python) -> [pip](https://pypi.org/project/layouts/)

```bash
pipenv install
pipenv run kll/kll --version
```

*or*

```bash
pip install layouts
```


## Usage

### General Usage

```bash
kll <kll files>
```

### Kiibohd Controller Usage

```bash
kll <misc kll files> --config <config/capability kll files> --base <basemap kll files) --default <default layer kll files> --partial <partial layer 1 kll files> --partial <partial layer 2 kll files>
```

See `kll --help` for the most up to date documentation



## Unit Tests

Unit tests can be found in the [tests](tests) directory.
They are run by Travis-CI, but can be useful when testing your own changes.

Remember to add new tests when adding new features/changes.



## Code Organization

* [kll/common](kll/common) - Main portion of KLL compiler.
* [kll/emitters](kll/emitters) - Various output formats of the KLL compiler.
* [kll/examples](kll/examples) - Example kll files, often used for test cases.
* [kll/extern](kll/extern) - External libraries, copied into git repo for convenience.
* [kll/layouts](kll/layouts) - Layout kll files used for various keyboards and tests.
* [kll/templates](kll/templates) - Templates used by emitters when generating output.
* [tests](tests) - Unit tests for the KLL compiler.



## Patches/Features/Backends

Completely welcome :D
aliyun-table 0.1.2
Aliyun Tablestore Operations, make aliyun tablestore more simple.
Requires Python: >=3.6

# aliyun-table

阿里云表格相关操作

目前支持：


[ ] 查询全部数据

[x] 表格查询：短语查询，前缀匹配查询，精准查询，范围查询

[x] 插入数据

[x] 更新数据



已知bug:


[ ] 查询超过100条时，不加排序可能导致查询无法翻页.


# CHANGELOG


v0.1.2 (2020-03-19)

- 现在```put_row```和```update_row```会以字典形式返回主键信息.



## 安装

```bash
pip install --upgrade aliyun-table
```


安装完成后，在交互界面执行：


```python
>>> from aliyun_table import TableClient
>>>
```

如果没有报错，说明安装成功


### 初始化

以下变量可以设置为环境变量

```OTS_END_POINT```

```OTS_ACCESS_KEY_ID```

```OTS_ACCESS_KEY_SECRET```


```python
from aliyun_table import TableClient
table_cli = TableClient()
```



### 插入数据和更新数据

```python

table_cli = TableClient(instance_name='实例名',
                        end_point='endpoint',
                        access_key_id='access_key_secret', 
                        access_key_secret='access_key_secret'):
data = {
    'pk1': '123',
    # pk2为自增列，需要传None.
    'pk2': None,
    'col1': 'test'
    'article': 'This is a test article.'
}
pk_dict = table_cli.put_row(table_name='table_name', 
                       pk_list=['primary_key1', 'primary_key2'], 
                       data=data)
print(pk_dict)
```

### Reference

```python

class TableClient(object):
    def __init__(
                 self,
                 table_name,
                 instance_name,
                 end_point=None,
                 access_key_id=None, 
                 access_key_secret=None):
        ...

    def show_index(self, index_name='filter'):
        ...

    def put_row(self, table_name, pk_list, data):
        """
        写入数据,写入成功返回消耗cu.

        :param pk_list [list]: primary key name list. e.g. ['pk1', 'pk2']
        :param data [dict]: 包括主键在内的数据字典.
        """
        ... 

    def update_row(self, pk_list, data):
        """
        Update row

        :param pk_list [list]: primary key name list. e.g. ['pk1', 'pk2']
        :param data [dict]: 包括主键在内的数据字典.
        """
        ...

    def query(self, 
              table_name,
              must_query_list=[], 
              must_not_query_list=[], 
              should_query_list=[], 
              get_total_count=False, 
              sort_list=None, 
              index_name='filter', 
              column_to_get=None, 
              limit=None):
        """
        第一个版本的and查询.
        根据用户输入的查询条件构造阿里云查询.
        :param must_query_list [list]: 需要满足的查询条件列表, 不指定则默认为查询全部数据
        :param must_not_query_list [list]: 不查询的条件列表（满足这些条件的数据不查询）
        :param should_query_list [list]: 不查询的条件列表（满足这些条件的数据不查询）
        :param get_total_count [bool]: 是否需要获取查询到的总数量
        :param sort_list [list]: 列的排序列表，格式为list. 默认不排序
        :param limit [int]: 最多返回多少数量的数据
        :return: 查询到数据的迭代器，每个数据根据get_total_count的取值有所不同
        ...
```
postalcodes-nepal 1.0.0
A package for working with postal codes information of Nepal
Keywords: postalcodes Nepal zipcodes postalcodes-nepal

# postalcodes-nepal


postalcodes-nepal is a python package that helps you to work with postal codes (Zip codes) of Nepal.
Some of the functionality currently supported by postalcodes-nepal are:
  - Query for the postal code of any city of Nepal.
  - Check wheather a postal code is valid code of Nepal. 
  - Find the post office information based on city or postal code.
  - Find postal codes of all post office within a district.
  - Find postal codes of all post office of Nepal



# Installation

Run the following to install:

  ```python
$ pip install postalcodes-nepal
```




## Usage 

Some simple usecases of postalcodes-nepal

 ```python
from postalcodes_nepal.postalcodes import *

#Validate postal code. Checks if the postal code is valid and return True or False accordingly.
validate(44660)

#Find the postal code of particular city. Returns postal code or if the query didnot match any city returns None.
postal_code('Kathmandu')

#Returns the post office informtion of the city ie. District, Post Office, Postal Code and Post Office Type. Returns None if data doesnot match.
city_po_info('Kathmandu')

#Returns the city of the provided postal code. Returns None if data doesnot match.
postalcode_to_city(44600)

#Returns the post office information of the postal code.  Returns None if data doesnot match.
`postalcode_info(44600)

#Returns the city and postal codes of all post office of a district. Returns None if query doesnot match.
district_data('Jhapa')

#Returns the city and postal codes of all post offices of Nepal.
country_data()
```

OR you can alternatively import as follows:
```python
from postalcodes_nepal import postalcodes

postalcodes.validate(44600)

#OR import individually
from postalcodes_nepal.postalcodes import validate

validate(44600)
```

# License

This project is licensed under the MIT License - see the [LICENSE.md] file for details

# Links

- [Package home - PyPi]
- [Source]




   [Source]: <https://github.com/beingbiplov/postalcodes-nepal>
   [biplov]: <https://github.com/beingbiplov>
   [LICENSE.md]: <https://github.com/beingbiplov/postalcodes-nepal/blob/master/LICENSE>
   [Package home - PyPi]: <https://pypi.org/project/postalcodes-nepal/>
ir-ldr-mingjie 0.1.4
The python package to deal with infrared LDR and Teff.

# ir_ldr

The package `ir_ldr` is for measuring the spectral line depth of the APOGEE and WINERED spectra, calculating the line depth ratio (LDR) and finally deriving the effective temperature (T_LDR).

The LDR-Teff relations inside this package are from [Jian+19](https://ui.adsabs.harvard.edu/abs/2019MNRAS.485.1310J/abstract), [Taniguchi+18](https://ui.adsabs.harvard.edu/abs/2018MNRAS.473.4993T/abstract) and Jian+20a (in prep.). Please also refer to [Fukue+15](https://ui.adsabs.harvard.edu/abs/2015ApJ...812...64F/abstract).

This package relys on `numpy`, `pandas`, `matplotlib` and `scipy`; it is based on python 3.

# Installation

`pip install ir_ldr`

# Tutorial

The synthetic spectra of a dwarf star (Teff=5000 K, logg=4.5 dex and feh=0 dex; generated from MOOG) in `ir_ldr/file/dwarf` for an example of T_LDR calculation.

```py
# Load the linelist.
linelist = ir_ldr.load_linelist('yj', 'dwarf-j20a')

# Here we use all the orders of synthetic spectra.
for order in [43, 44, 45, 46, 47, 48, 52, 53, 54, 55, 56, 57]:
    # Load the synthetic spectra
    spec = pd.read_csv(ir_ldr.__path__[0] + '/file/example_spectra/dwarf/order{}.txt'.format(order),
                       sep=' +', skiprows=2, engine='python', names=['wav', 'residual'])
    wav = spec['wav'].values
    residual = spec['residual'].values

    # Select the line pairs for a specific order
    linelist_sub = linelist[linelist['order'] == order]
    if len(linelist_sub) == 0:
        continue
    linelist_sub.reset_index(drop=True, inplace=True)

    # Measure the line depth of low(1)- and high(2)-EP line.
    # Here the signal to noise ratio for the target star and telluric standard are
    # manually set as 300, but the S_N of synthetic spectra is much higher than that.
    d1 = ir_ldr.depth_measure(wav, residual, linelist_sub['linewav1'], suffix=1, S_N=[300, 300])
    d2 = ir_ldr.depth_measure(wav, residual, linelist_sub['linewav2'], suffix=2, S_N=[300, 300])

    # Calculate the logLDR value.
    lgLDR = ir_ldr.cal_ldr(d1, d2, type='lgLDR')
    # Combine the Dataframes of one order.
    record = ir_ldr.combine_df([linelist_sub, d1, d2, lgLDR])

    if order == 43:
        record_all = record
    else:
        record_all = pd.concat([record_all, record], sort=False)

# Calculate T_LDR
LDR = ir_ldr.ldr2tldr_winered_solar(record_all, df_output=True)
```

And the result `(T_LDR, T_LDR_err)` is:
```py
LDR[0:2]
>>> (5009.857201559249, 22.35966233607925)
# Note the T_LDR_err is not an accurate estimation here since the S_N is manually set.
```

# Author

Mingjie Jian (ssaajianmingjie@gmail.com)

PhD student, Department of Astronomy, the University of Tokyo
nma 0.1
Sends a desktop notification when a process finishes
Requires Python: >=3.6

# *N*otify *M*e *A*fter

## About

*N*otify *M*e *A*fter (nma) is a python package that sends a desktop notification whenever a shell process or decorated function finishes execution. This repository provides a python shell script for general use and a decorator for use within python code.

## Requirements:

- Linux or MacOS
    - If running Linux, `send-notify` also needs to be installed
        - Google it for your distro. It's probably already installed, unless you're running something like arch with no desktop enviroment.
    - If running MacOS, `terminal-notifier` also needs to be installed
        - `brew install terminal-notifier`
- python 3.6+

## Installation

enter the `nma` directory and run `python3 -m pip install .`

## Examples

### In shell scripts

`nma "echo test"`


`nma "sudo pacman -Syu"`


`nma "sleep 1; echo test"`

`sleep 1; echo test | nma -`

```bash
my_func() {
    sleep .1;
}
my_func | nma -
```
### Decorator

```python
from nma.notify_decorator import notify_after
@notify_after
def test():
    print("basic test")
```

## Unimplemented Features

* ~~Call script via piping (ex: `sleep 1 | nma -`)~~
* Email notifications
* Text notifications