Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for processing local file #57

Closed
evamaxfield opened this issue May 24, 2021 · 0 comments · Fixed by #89
Closed

Add script for processing local file #57

evamaxfield opened this issue May 24, 2021 · 0 comments · Fixed by #89
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@evamaxfield
Copy link
Member

Use Case

Please provide a use case to help us understand your request in context

To process the various one-off events that occur, for example, I just started processing the 2021 election events for Seattle.

Solution

Please describe your ideal solution

I wrote a tiny script to do this in cdptools that takes a local file + some JSON file for the event / minutes details (the questions asked at the forum), uploads the video to Google storage then processes that uploaded file with the config JSON for event details.

In cdp-backend this is actually easier because all the ingestion models are seriabliable to JSON iirc. dataclasses_json.
So that would mean a user simply has to write the object in Python and serialize or just in pure JSON, then have a script accept the serialized ingestion model + the video path.

Alternatives

Please describe any alternatives you've considered, even if you've dismissed them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants