semvec/pypi-packages huggingface dataset:
obscura 0.1.1
Symmetric file encryption with Argon2-based passphrases
Requires Python: >=3.8

# obscura

## Example

```shell
$ obscura <(echo 'secret snowflake') > secret.enc
Password:
$ obscura -d secret.enc
Password:
secret snowflake
```

## Install

### pip

```shell
$ pip install obscura
```

### Arch Linux

There is an AUR package available here:
https://aur.archlinux.org/packages/obscura

If you do not know how to install AUR packages on Arch Linux, please consult
the [wiki](https://wiki.archlinux.org/title/Arch_User_Repository)
bitmap-sparse-array 0.1.3
Pure python implementation of a sparse array.
Requires Python: >=3.7

This code has been transpiled from `js-sparse-array <https://github.com/pgte/js-sparse-array/commit/a489406f6abb5aa4bb7b536b8b73289944bf4343>`_ and has minimal changes. 

Usage
-----

SparseArray implements `MutableSequence`.

We suggest you import the SparseArray as follows:

>>> from bitmap_sparse_array import SparseArray

Setting and getting
^^^^^^^^^^^^^^^^^^^

>>> sa = SparseArray()
>>> sa[1000000] = 'value'
>>> sa[1000000]
'value'
>>> sa[1]
IndexError()
>>> len(sa)
1000001

Iterating
^^^^^^^^^
Due to the sparse nature of `SparseArray`, it does not make sense to iterate over all values in the traditional sense because of possible omitted indices. Therefore, you cannot iterate over the `SparseArray` itself. Instead, 3 generators are provided.

>>> sa = SparseArray()
>>> sa[0] = '0'
>>> sa[2] = '2'

`SparseArray.indices()` returns a generator of indices that have values.

>>> list(sa.indices())
[0, 2]

`SparseArray.items()` returns a generator of tuples of indices and values, similar to `Mapping.items()`.

>>> list(sa.items())
[(0, '0'), (2, '2')]

`SparseArray.values(*, default=None, start=0, end=None)` returns a generator of values with a default value for non-set indices.

>>> list(sa.values())
['0', None, '2']
>>> list(sa.values(default='default'))
['0', 'default', '2']

For the same reasons, you cannot get or set slices of a `SparseArray`, nor `insert()`