-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move additional documentation to docs directory (#71)
To keep the README as clear and focused as possible.
- Loading branch information
Showing
3 changed files
with
68 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Requirements | ||
|
||
- URL of a RapidPro host | ||
- Account credentials (username, password) for a user with the 'Editor' role in a RapidPro workspace | ||
- One or more flow definition (JSON) files to upload | ||
|
||
# Run | ||
|
||
## CLI | ||
|
||
The command itself provides information on usage: | ||
|
||
``` | ||
rpimport --help | ||
``` | ||
|
||
For example: | ||
|
||
``` | ||
rpimport --host https://example.com --user example --password pass flow_definition_1.json flow_definition_2.json | ||
``` | ||
|
||
## Python import | ||
|
||
From within your own Python script/application: | ||
|
||
``` | ||
from parenttext_pipeline.importer import import_definition | ||
import_definition( | ||
"https://example.com", | ||
"example", | ||
"pass", | ||
["definition_file_1.json", "definition_file_2.json"], | ||
) | ||
``` | ||
|
||
# CI/CD | ||
|
||
When running within continuous integration/deployment software, it is recommended that the password be kept secret at all times. The importer tool will not print any log messages containing the password. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Overview | ||
|
||
ParentText chatbots need supporting media files. This project contains a script that will transcode source video files to video and audio files that meet the ParentText specification. | ||
|
||
## Requirements | ||
|
||
- Install the [FFmpeg] command | ||
- Obtain source video files | ||
|
||
## CLI | ||
|
||
``` | ||
python -m parenttext.transcode --help | ||
``` | ||
|
||
|
||
[FFmpeg]: https://ffmpeg.org/ |