Skip to main content

oui

Making highly reusable UI components for sound recognition pipelines.

If more people use a component, reuse is a given. So how do we make more people use a component? The component should be:

  • useful
  • easy to use
  • easy to adapt (because one size rarely fits all)

We should have three "contexts" in mind:

  • use in front-end dev
  • use from python (dash -- or other py-js bridgin tool)
  • use from python (jupyter notebooks)

What components? Some really high level ones (lists, tables, nested data)? Some more specific: Hear/view sound, configs CRUD, etc.

Architectural notes

The following are just suggestions, but follow them unless you have a defendable reason not to. Also, do add/edit these if you have some ideas of your own.

One folder per component, with python interface in the __init__.py under it.

If python and js need to share some resources (say settings, defaults, etc.), put these in ONE place (for example a json file) from which both python and js will source these.

Include as many defaults and annotations as possible. We want the components to be used out-of-the-box, and only tuned if and when needed. Defaults can be dumb values, or "smart" (set dynamically according to the context)

Name your values. For example, instead of 24 or 3600 in the code, define HOURS_PER_DAY = 24 and SECONDS_PER_HOUR = 3600 and use these names.

Extract as many variables from the code and and perculate them higher in the interface (such as function arguments or module constants).

Components

Keep in mind: What are our abstract objects and operations that we want the user to perform on these, and what ways can we provide to do so.

What kinds of ways can I allow the user to view, navigate, search, create, or edit... lists, tables, nested data?

What kinds of data do we typically deal with, and in what form, and what do we do with this data? We have sounds and annotations thereof. We want to be able to upload and download sounds, hear and view them, do CRUD on annotations, go from annotations to annoted (sound) and see what annotations we have for a given sounds.

Etc.

Lists

Ways to view lists of jsons. Needs a list nevigation and a json viewing protocol.

Tables

Ideally one that tries to adapt automatically to a context (e.g. what do we do when the table is too small/big horizontally/vertically), but with many properties than can be turned off/on or parametrized (e.g. sortable, searchable, collapsable, etc)

Nested data

Collapse/Expand file tree view? Page by page flat view?

Configs CRUD

Hear sound

What do we do when the sound is big?

View sound

What do we do when the sound is big?

Spectrogram

What do we do when the sound is big?

waveform plot (and aggregates)

Putting viewing and hearing together

Splatter stuff

Named selections

Of sounds, annotations, etc.

Contents

useful

easy

adaptable

Reusability tricks

useful

easy

adaptable

Metadata

Release files for oui 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oui 0.3.4
File Size Uploaded Provenance Actions
oui-0.3.4.tar.gz 14.2 MB Without provenance Details for oui-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oui 0.3.4
File Interpreter ABI Platform Actions
oui-0.3.4-py3-none-any.whl Python 3 none any Details for oui-0.3.4-py3-none-any.whl

Total release size: 28.3 MB

Release files / oui-0.3.4.tar.gz

Download URL oui-0.3.4.tar.gz
Size 14.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f46e7c655760fa96b91e26314df8593272a5d12b01b74883990c807ad8d884e8
BLAKE2b-256 checksum
How to use checksums
b6fe4ca1e8ab23c0f9c910415f10c849e752ba66c536194a2fd72ed1cbc0816e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / oui-0.3.4-py3-none-any.whl

Download URL oui-0.3.4-py3-none-any.whl
Size 14.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6983a3ee4f49be6aa082e2aac5981d0644082c788d4ec1921a81b98ed23a3651
BLAKE2b-256 checksum
How to use checksums
20398d24ba76813314e7502500ae178a391d62aa976f5d255a918c9fd86d9311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for oui 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page