Skip to main content

A small package used for creating conversation logs.

Project description

Convolog

A small package used for creating conversation logs

Started conversation at 2024-07-10 18:38:33 2024-07-10 18:38:33 [Alice]: Hello, how are you? 2024-07-10 18:38:33 [Bob]: I'm doing well, thank you!

Basic Usage

Installation

pip install convolog

Template Code

from convolog import Conversation
import  time
if __name__ == '__main__':
    convo = Conversation("session1")
    convo.add_log("Alice", "Hello, how are you?")
    convo.add_log("Bob", "I'm doing well, thank you!")
    time.sleep(5)
    convo.delete_conversation()

I dont want to create a documentation for this so here's the entire documentation:

Conversation Class

Function Description
Conversation(identifier: str, file_path: str = None) Creates a conversation (will automatically create a file)
get_read_file() Returns the file with read permissions
get_write_file() Returns the file with write permissions
add_log(source: str, message: str) Adds a conversation log
delete_conversation() Deletes the conversation file (may be dangerous idk)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

convolog-0.0.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

convolog-0.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file convolog-0.0.3.tar.gz.

File metadata

  • Download URL: convolog-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for convolog-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8c1ce3cd8f75ec55e9442faec6d0286741e51a98fc18c378ec73a99bbb491907
MD5 928510835b70a80494ad8c0fb12b3bd2
BLAKE2b-256 8f7d9732d419dff6cc4f10ac6c13448b8204dd42e583fb3bb1e19d5e02579a0a

See more details on using hashes here.

File details

Details for the file convolog-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: convolog-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for convolog-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4057deff11974485a663518209fc68fe4ada7eb2a3a64f856a1e03abdc34bc02
MD5 bb03bb8e3d564ba84e6da3014e24bf0f
BLAKE2b-256 597807bd405acaa5b78ace64a564acf4a2ba5316434a94780678efcffe799191

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page