semvec/pypi-packages huggingface dataset:
sisense 0.2.2
Sisense API interface in Python.
Requires Python: >=3.7

# Sisense API
[![Documentation Status](https://readthedocs.org/projects/sisense/badge/?version=latest)](https://sisense.readthedocs.io/en/latest/?badge=latest)

Python interface for Sisense API.

### Note
In development. Beta version available in:
```shell script
$ pip install -i https://test.pypi.org/simple/ sisense
```

## Install
```shell script
$ pip install sisense
```

## Getting started
```python
from sisense import Sisense

sisense = Sisense(host, token)
datamodel = sisense.datamodel

new_datamodel = datamodel.clone('Datamodel copy')

build = new_datamodel.start_build('replace_all')
build.stop() 

```

## For developers
### Testing
To run all test:
```shell script
$ make api-test
```

#### Support files
In order to test the API functions, you need to supply the following support files:

- `tests/support_files/dashboard.dash`: file created when exporting a dashboard on Sisense
- `tests/support_files/datasecurity.json`: a list of data security rules
- `tests/support_files/hierarchy.json`: a list of hierarchy objects
- `tests/support_files/permission.json`: a list of permission objects
- `tests/support_files/config/api_v09.json`: a JSON with
```json
{
    "host": "<host address>",
    "token": "<API token>",
    "elasticube": "<Elasticube's name used for testing>",
    "user_email": "<User e-mail used for testing>"
}
```
- `tests/support_files/config/api_v1.json`: a JSON with
```json
{
    "host": "<host address>",
    "token": "<API token>",
    "elasticube": "<Elasticube's name used for testing>",
    "user_email": "<User's e-mail used for testing>",
    "group_name": "<Group's name used for testing>",
    "dashboard": "<Dashboard's name used for testing>",
    "folder": "<Folder's name used for testing>"
}
```
- `tests/support_files/config/api_v2.json`: a JSON with
```json
{
    "host": "<host address>",
    "token": "<API token>",
    "datamodel": "<Elasticube's name used for testing>",
    "datamodel.oid": "<Elasticube's ID used for testing (must be the same datamodel)>",
}
```
hilok 1.3.1
Fast hierarchical locks
Requires Python: >=3.7

# Hierarchical locks

Allows the caller to lock a "directory", or an individual file.

Locks are, by default, shared, recursive & timed.

First optional argument to the lock manager is the "sep".

Second optional argument is "flags" (default is HiLokFlags.RECURSIVE, can be also be HiLokFlags:STRICT).

```python
from hilok import HiLok, HiLokError, HiLokFlags

h = HiLok()     # default sep is '/', can pass it in here

rd = h.read("/some/path")

# nonblocking, this will fail!
try:
    wr = h.write("/some", block=False)
except HiLokError:
    pass

rd.release()

wr = h.write("/some")

# timeout=0 is the the same as block=False
rd = h.read("/some/path", block=False)

# with syntax is fine:
with h.read("/some/path"):
    pass
```

Lock modes:

 - `HiLokFlags.STRICT` : not reentrant, the good mode
 - `HiLokFlags.RECURSIVE` : fully reentrant, supports escalation (read/write/release-read) and de-escalation (write/read/release-write)
 - `HiLokFlags.RECURSIVE_WRITE` : only write-locks are reentrant
 - `HiLokFlags.RECURSIVE_ONEWAY` : can read-lock while holding a write, but not vice-versa
deltw 2.1.0
Twitter Cleaner to delete archived tweets
Requires Python: >=3.5

deltw
=====

Twitter Tweet cleaner to delete archived tweets using a [Twitter Archive](https://support.twitter.com/articles/20170160) file

Twitter API: v1.1

[![Test](https://github.com/dceoy/deltw/actions/workflows/test.yml/badge.svg)](https://github.com/dceoy/deltw/actions/workflows/test.yml)
[![Upload Python Package](https://github.com/dceoy/deltw/actions/workflows/python-publish.yml/badge.svg)](https://github.com/dceoy/deltw/actions/workflows/python-publish.yml)
[![CI to Docker Hub](https://github.com/dceoy/deltw/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/dceoy/deltw/actions/workflows/docker-publish.yml)

Installation
------------

```sh
$ pip install -U deltw
```

Usage
-----


1.  Download your [Twitter archive](https://support.twitter.com/articles/20170160) as a ZIP file.

2.  Set credentials to use Twitter API.

    ```sh
    $ deltw init
    $ vi tw_credentials.yml  # => Enter keys
    ```

3.  Delete archived tweets in your Twitter archive on Twitter.

    ```sh
    $ deltw delete --credential tw_credentials.yml --archive /path/to/tweet_archive.zip
    ```

Run `deltw --help` for more information about options.