semvec/pypi-packages huggingface dataset:
cuid 0.4
Fast, scalable unique ID generation

# cuid.py 

Implementation of https://github.com/ericelliott/cuid in Python.

A `cuid` is a portable and sequentially-ordered unique identifier designed for
horizontal scalability and speed -- this version is ported from the reference
implementation in Javascript.

**NOTE**: Particularly if you have security concerns, the [`cuid` standard has been deprecated in favor of `cuid2`](https://github.com/paralleldrive/cuid2)!

Tested on CPython 2.7, 3.6-3.11 as well as PyPy & PyPy3.

Rough benchmarks on my machine (i7-8750H CPU @ 2.20GHz) using `setup.py bench`
(which times the creation of 1 million `cuid`s):

| Version                    | ns / cuid |
| -------------------------- | --------- |
| CPython 3.7.3              | 6095.257  |
| CPython 3.6.8              | 6846.050  |
| CPython 3.5.6              | 6604.012  |
| CPython 2.7.16             | 6913.681  |
| PyPy 7.1.1 (Python 2.7.13) | 326.344   |
| PyPy3 7.1.1 (Python 3.6.1) | 562.673   |

_(Note that timing the creation of fewer IDs changes the way PyPy runs the code, because of JIT warmup --
obviously creating this many IDs takes advantage of the warmed JIT)_

For now, this has no dependencies outside the standard library -- in time this may change, 
to provide better random numbers and / or performance.
streamlit-datalist 0.0.5
Datalist element for Streamlit
Requires Python: >=3.6

<h2> Streamlit Datalist </h2>

This component brings datalists to Streamlit. Contrary to regular selectboxes, where the user is contrained to the options in the dropdown list, datalists can receive values that weren't available.

To install this component, run the following command:

        pip install streamlit-datalist

Importing and using the package can be done as follows:
  
        from streamlit_datalist import stDatalist
        
        my_selection = stDatalist("This datalist is...", ["great", "cool", "neat"])

<br><br>
<img src="https://user-images.githubusercontent.com/108201791/200101163-b91ed217-d60a-4695-a5e1-a198cf2c857c.gif" style="width:50em">

<br>

The component takes the following parameters:
- <b>label</b>: <i>string</i><br>
A name to display on top of the component.

- <b>options</b>: <i>list</i><br>
List of options to display in the dropdown.

- <b>index</b>: <i>int</i> (optional, default <i>None</i>)<br>
Index of the list element to be displayed as a default value. Defaults to <i>None</i>.

- <b>key</b>: <i>int, str</i> (optional, default <i>None</i>)<br>
Component's key. Required when multiple datalists will be used in the Streamlit app. 

<br>

<h3>v0.0.5</h3>
Changes:
<li>Fixing README and version of package.

<h3>v0.0.4a0</h3>
Changes:
<li>Adding <i>disabled</i> attribute, to set the state of the widget.
<li>Changed the way the widget updates. Now value will only update when clicking away of the widget, or by hitting the Enter key.

<h3>v0.0.3</h3>
Changes:
<li>Fix: Default value now refreshes when input data changes.

<h3>v0.0.2</h3>
Changes:
<li>Added <i>index</i> parameter, to specify a default selection from the options list.
<li>Deleting value from component will return a <i>None</i> value instead of <i>blank</i>.

<h3>v0.0.1</h3>
Initial release of the component