Provide package API to use programmatically #20
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
fcode/delarte#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So far this package only provides a CLI access, I suggest providing a API access (through functions importable from
__init__) so this package can be used by other programs.After
fad48ff661The muxing (FFMPEG) still prints tostdout, this should be hidden for a clean API access.Also, errors should be exposed in
__init__The muxing (FFMPEG) still prints to
stdout, this should be hidden for a clean API access.One could argue that in order for the API to be as flexible/useful as possible, its scope should be on the actual ArteTV business... for example: the fetch/download (and its dependency on
requests) and the actual muxing could/should be externalized.For the muxing, we could imagine the API to only provide the command line to run FFMPEG but not running it.
For the fetch/download, two strategies come to mind:
While 2. provides better flexibility (in the API should ever do multiple or conditional fetches), 1. is somehow "cleaner" and less of a machinery.
Opinions ?
Note: the difference I am making between fetch and download is whether it is done in memory or on disk.