vids-db
File based database to store video information.
This database provides efficient searches for a variaty of differerent common search patterns, like all videos in a channel, or all videos for everyone in the last 4 hours.
For a front end to this database, please see vids-db-server
Platform Unit Tests
Api
from vids_db import Database, Video
db = vids_db.Database("path/to/database")
vid = Video(...)
db.update(vid)
vids = db.get_video_list(date_start=date_start, date_end=date_end)
print(vids)
Full Tests + linting
git clone https://github.com/zackees/vids-dbcd vids_dbtox
Networking Requests
- Please see
Video.parse_json(...)for generating a type safe input json that can be used to insert videos into the database. See also vids-db-server.
Version
- 1.2.3: Fix duration parsing.
- 1.2.2: Fix indexes.
- 1.2.1: nit.
- 1.2.0: Fixes index. Old databases are abandonded after this update.
- 1.1.6: Adds migration on startup to fix niave datestamps.
- 1.1.5: Timezone niave datestamps are now rejected
- 1.1.4: bulk get_by_url
- 1.1.3: Adds remove by channel name, to allow deletion
- 1.1.1: Implements get_channel_names() to find all distinct channel names
- 1.1.0: vids-db now has full text search disabled by default (too processor intensive)
- 1.0.9: parse_json now can take in a dict
- 1.0.8: Adds parse_json
- 1.0.7: Relaxes views
- 1.0.6: Relaxes channel name to allow "NTD"
- 1.0.5: Fixes issue where datestamp was too strict
Metadata
Release files for vids-db 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vids_db-1.2.5.tar.gz | 14.2 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vids_db-1.2.5-py3-none-any.whl | Python 3 | none | any | Details |
| vids_db-1.2.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 34.0 kB
Release files / vids_db-1.2.5.tar.gz
| Download URL | vids_db-1.2.5.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65d3e6961ec6c472f0869117d4763bed707b34334cd7bb0614249702a651202c
|
|
BLAKE2b-256 checksum How to use checksums |
b44dfc6d636a96f2de553868777c24dc1a72d00732fbb3314e4dc73c8ef90951
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / vids_db-1.2.5-py3-none-any.whl
| Download URL | vids_db-1.2.5-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a8ad1d20b06e217ed537200597ce5cfecc6fb8daa4c3d625ce8311035fc3f7c
|
|
BLAKE2b-256 checksum How to use checksums |
dc47c85b0f63a25455a36dbad45668fb099fd06ae7ab9cf2c4c4f306041ade44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / vids_db-1.2.5-py2.py3-none-any.whl
| Download URL | vids_db-1.2.5-py2.py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5e7afa64538f42b3ef60b438a41fbe36eca6e50f9a843d6ed228a7bb7bc04e7c
|
|
BLAKE2b-256 checksum How to use checksums |
d13dfce8472a2d05c507abeca10554684d5eebd1a67c9d0bef16b1367895aa66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.5
|