semvec/pypi-packages huggingface dataset:
cosmian-lib 0.9.5
Python bindings to Cosmian products
License: MIT

# Python cosmian_lib

This library is the main python library that wraps REST calls to a cosmian server.
Install the library via your python package manager by invoking

```console
python3 -m pip install cosmian_lib-0.1.tar.gz
```

To use this library, instantiate a `Server` instance with server base URL
 and call the appropriate module e.g.

```python
from cosmian_lib import Server
psi = Server("http://localhost:9999/").psi()
```


### PSI (Private Set Intersection)

This module implements a Private Set Intersection, which allows two parties holding sets to compare encrypted versions of these sets in order to compute the intersection. Neither party reveals anything to the other party except for the intersection which is revealed to one of the parties.

In this offline implementation, the "receiver" encrypts the its set, sends it encrypted to the "sender" which homomorphically computes the intersection with its set and sends the encrypted computation result back to the receiver for decryption. Once the sender has completed its set-up with, the sender can run the homomorphic intersection multiple times against the same set-up (step 3 of the example below).

The sender can be implemented using synchronous or the asynchronous versions of the methods.

It is important to call one of the `clean` methods once a receiver file is not in use anymore since server side cached data can be very big.

Please see the included [`tests_psi.py`](tests/tests.psi.py) file for usage and in particular the `complete_test_sync` and `complete_test_async` functions.

To run the tests: : `/usr/bin/python3 test/test_psi.py TestPsi.complete_test_sync`

In [demo_psi.py](demo_psi.py) is a complete PSI flow using an asynchronous implemented sender.
Use of the asynchronous calls are demonstrated using a `thread.join()` and a `Queue`
coolab 1.2.0
Instantly working cool apps you can use on Google Colab!
License: MIT
Keywords: colab,vscode,python

# Coolab
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)
[![PyPI version](https://badge.fury.io/py/coolab.svg)](https://badge.fury.io/py/coolab)
![python version](https://img.shields.io/badge/python-3.6%2C3.7%2C3.8-blue?logo=python)

*Instantly working cool apps you can use on Google Colab In ONE line!*

## Available Apps

#### 1. vscode

```import coolab; coolab.Code().run()```

#### 2. more to come

## How to Use in Google Colab?


[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1SyUpFRWQrgriUnJcLGMatDvxxKP9TU5r?usp=sharing)

```
!pip install coolab # install package using pip
import coolab; coolab.Code().run() # run in seconds.
```

## How Fast is it

We cache vscode installation files and configurations in your google drive if you choose to mount your drive. It takes much less time if you run the same code at the second time (even in different colab sessions).

* VScode installation package is cached (so need to re-download vscode)
* Your connection token is cached (never worry about configuration)
* Working directory is cached (so you always automatically get directed back to the last working directory)

## How Coolab is Made

*Coolab* is made using *coolab* on Google *Colab* :laughing: (pun intended).

## Related Projects

A similar project [colabcode](https://github.com/abhishekkrthakur/colabcode) also provides vscode access using colab. However, we aim to provide better user experience using caching mechanism.

## Next Step

We aim to provide more online tools using the computation resource of Google Colab. You start to use these awesome tools and we deal with the rest!

## Suggestions

Feel free to create new [issue](https://github.com/songlinhou/coolab/issues) so we can improve this library!

## Updates

* Bug fixes to prevent crashing when selecting drives.
pydroneapi 0.1.2
Helper scripts to manage Drone API operations
License: MIT
Requires Python: >=3.6

# pydroneapi

[![Run Python Tests](https://github.com/bellyjay1005/pydroneci/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bellyjay1005/pydroneci/actions/workflows/ci.yml)
[![Push to PyPi](https://github.com/bellyjay1005/pydroneci/actions/workflows/pypi.yml/badge.svg)](https://github.com/bellyjay1005/pydroneci/actions/workflows/pypi.yml)
[![Latest Version](https://pypip.in/version/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)
[![Download](https://pypip.in/download/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)
[![Status](https://pypip.in/status/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)
[![License](https://pypip.in/license/pydroneapi/badge.svg)](https://pypi.org/project/pydroneapi/)

A DRONE CI Server - Python helper scripts to manage API interactions and operations.

This tool manages authentication against Drone CI and performs common Drone CI API operations using a Python wrapper.

## Prerequisites

 - [Docker 18.09+](https://www.docker.com/)
 - Make

## Installation

From PyPI:

```
pip install pydroneapi
```

From source:

```
git clone --recursive https://github.com/bellyjay1005/pydroneapi
cd pydroneci
python setup.py install
```

From Github directly:

```
pip3 install pydroneapi@git+https://github.com/bellyjay1005/pydroneci
```
## Usage

#### Example:

```python
from pydroneapi import PyDroneAPI

# Sync application github repository with Drone pipeline
drone = PyDroneAPI(
    drone_host='https://example.com',
    token='abcd1234',
    repo='bellyjay1005/test-repo',
)

sync_res = drone.synchronize_repository()
if not sync_res[0]['id']:
    print('New Repository Not Synchronized. Error Message - %s', sync_res)
    return False

```

## Development & Test

Reference [make help](https://github.com/bellyjay1005/pydroneci/blob/main/Makefile) for more commands used for development and testing of source codes.