Transcribe Media Files
Project description
ak_transcribe
An awesome README template for your projects!
Table of Contents
- 1. About the Project
- 2. Getting Started
- 3. Usage
- 4. Development
- 5. Roadmap
- 6. FAQ
- 7. License
- 8. Contact
- 9. Acknowledgements
1. About the Project
1.1. Screenshots
1.2. Features
- Feature 1
- Feature 2
- Feature 3
2. Getting Started
2.1. Prerequisites
Python 3.11 or above
2.2. Dependencies
Create the virutual environment and install dependencies
pip install flit
2.3. Installation
2.3.1. Production
Install with flit
flit install --deps production
2.3.2. Development
Download the git and install via flit
git clone https://github.com/rpakishore/Template-Python.git
cd Template-Python
pip install flit
flit install
3. Usage
from ak_transcribe import debug
debug(True) #For debug messages, Can be skipped.
3.1. Ollama - Local AI
Control the locally hosted Ollama module
from ak_transcribe.ollama import Ollama
ollama = Ollama(url='prx-01-ai:11434')
ollama.local #list local models
ollama.copy(source='llama2', destination='llama2-backup') #Copy an existing local model
ollama.delete(model_name='llama2') #Delete model and it's data
ollama.show(model_name='llama2') #Show info of local model
ollama.heartbeat() #Check if Ollama is running
ollama.public_models #List public models
ollama.pull(model_name='llama2') #pull a model from registry
#generate response
response, context = ollama.generate(
model_name='mistral',
prompt='Why is the sky blue in color?')
#create a model
ollama.create(
model_name='mario',
modelfile='FROM llama2\nSYSTEM You are mario from Super Mario Bros.')
3.2. Encryption
Minor encryption/decryption algoritm w/ Fernet. Also supports direct obscuring/unobscuring function
from ak_transcribe.cryptography import obscure, unobscure, encrypt_text, decrypt_text
obscure(text="Hello World") # Obscure the text without encryption
unobscure(obscured='eNrzSM3JyVcIzy_KSQEAGAsEHQ==') # Unobscure the text
encrypt_text(text='Hello World!', password='admin123') # Encrypt w/ Fernet
decrypt_text(encrypted_text='eaX34dw=', password='admin123') # Decrypt w/ Fernet
4. Development
- Open the project directory in vscode
- Update the app name under
pyproject.toml
- Change the folder name from
src\ak_transcribe
tosrc\<app_name>
, and propate the changes to the subfolders. - Review the dependencies under
pyproject.toml
and remove as needed. - Remove unneeded dependencies from
src\<app_name>\
5. Roadmap
- Set up a skeletal framework
- Todo 2
6. FAQ
-
Question 1
- Answer 1
-
Question 2
- Answer 2
7. License
See LICENSE for more information.
8. Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/Template-Python
9. Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ak_transcribe-0.0.1.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file ak_transcribe-0.0.1.tar.gz
.
File metadata
- Download URL: ak_transcribe-0.0.1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 183cdc7710d2e98d0e8e29a251fb867c45483e4b7ebba8ede453d0054a33c821 |
|
MD5 | aea984040da41b24a4f321e7d19e1fca |
|
BLAKE2b-256 | 86cefd828bd40354e303f987fd6ec043c5fa1e34a7cd494d9b65708470e5bca8 |
File details
Details for the file ak_transcribe-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ak_transcribe-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738a3616a2b24f078eaeebc9abb2592a820102e3f14682431b4a574515a201ba |
|
MD5 | eb995b29aa27f5b8d2950c6736eaad15 |
|
BLAKE2b-256 | bea22671f189637097eb2d5e8f798b8e734bf74f7ddd339b5ccd1c411e7c76dc |