semvec/pypi-packages huggingface dataset:
geokrety-api 0.0.2
GeoKrety JSONAPI server

[![Build Status](https://travis-ci.org/geokrety/geokrety-api.svg?branch=master)](https://travis-ci.org/geokrety/geokrety-api)
[![codecov](https://codecov.io/gh/geokrety/geokrety-api/branch/master/graph/badge.svg)](https://codecov.io/gh/geokrety/geokrety-api)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6cd7257a0bba42fc85b4d816b5e3cf59)](https://www.codacy.com/app/GeoKrety/geokrety-api?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=geokrety/geokrety-api&amp;utm_campaign=Badge_Grade)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgeokrety%2Fgeokrety-api.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgeokrety%2Fgeokrety-api?ref=badge_shield)
[![Pyup Status](https://pyup.io/repos/github/geokrety/geokrety-api/shield.svg)](https://pyup.io/repos/github/geokrety/geokrety-api/shield.svg)
[![Python3 Status](https://pyup.io/repos/github/geokrety/geokrety-api/python-3-shield.svg)](https://pyup.io/repos/github/geokrety/geokrety-api/python-3-shield.svg)


GeoKrety API Server enable to track GeoKrety objects. The system provides API endpoints to fetch the data, to modify and update it.


# Documentation

[Api documentation](https://geokrety.github.io/geokrety-api/index.html) is available online.

# License

This project is currently licensed under the GNU General Public License v3. A copy of LICENSE.md should be present along with the source code.

Code is based on fossasia/open-event-orga-server https://github.com/fossasia/open-event-orga-server


[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgeokrety%2Fgeokrety-api.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgeokrety%2Fgeokrety-api?ref=badge_large)
pystack-sherryt400 0.0.2
A synchronized stack data structure for python 3

# pystack
Synchronized stack data structure for Python 3


**Usage**

```
from stack import Stack

stack = Stack()

# push item
stack.push('item')

# pop item
item = stack.pop()
```


**Define size**

```
stack = Stack(10)
```

**Producer Consumer example**

```
from stack import Stack

import random
from threading import Thread
from time import sleep

_stack = Stack(10)

item_number = 0


class Producer(Thread):
    __id = 1

    def __init__(self, stack: Stack):
        super().__init__(name='P-%d' % Producer.__id)
        self.__stack = stack
        Producer.__id = Producer.__id + 1
        pass

    def run(self):
        global item_number
        while (True):
            item = 'item_%d' % item_number
            self.__stack.push(item)
            print(self.name, ' produced ', item)
            item_number = item_number + 1
            sleep(random.randint(0, 1) * 0.3)


class Consumer(Thread):
    __id = 1

    def __init__(self, stack):
        super().__init__(name='C-%d' % Consumer.__id)
        self.__stack = stack
        Consumer.__id = Consumer.__id + 1
        pass

    def run(self):
        global item_number
        while (True):
            item = self.__stack.pop()
            print(self.name, ' consumed ', item)
            item_number = item_number - 1
            sleep(random.randint(0, 1) * 0.3)


p1 = Producer(_stack)
p2 = Producer(_stack)
p3 = Producer(_stack)
c1 = Consumer(_stack)
c2 = Consumer(_stack)
c3 = Consumer(_stack)

p1.start()
p2.start()
p3.start()
c1.start()
c2.start()
c3.start()
```

**LICENSE**

Copyright (c) 2018 The Python Packaging Authority

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
filipid 0.0.4
UMAK utils module

### Installation

In order to install `filipid` please run `setup.py` script or use PIP.

```bash
python setup.py install
```

Using PIP

```bash
pip install filipid
```

### Example of usage

```python
from filipid import port

port = port.Port(port='/dev/cu.usbserial-A901A1JZ')
tmp = port.send([253, 252, 2, 3, 0], 0.04)
print(tmp)
tmp = port.send([253, 251, 2, 0], 0.02)
print(tmp)
tmp = port.send([255, 2], 0.02)
print(tmp)
```

### Utils tool

If you want to list all available ports

```bash
>>> list_ports

/dev/cu.SRS-XB10-CSRGAIA-1
/dev/cu.BoseQuietComfort35-SPPD-1
/dev/cu.usbserial-A901A1JZ

```