Skip to main content

Create and share a Message Secretly.

Project description

Secret-Message

Create and share Messages in a Secret way.

Install

pip install secretmessage

Import the package

import secretmessage

# ------OR------

#from secretmessage import create,show,history

Create a Message:

import secretmessage as message 

message.create("<USERNAME>","<YOUR_MESSAGE>","<PASSWORD_FOR_THE_MESSAGE>")

For creating a message it takes only 3 parameters:

1. Username - Just add your name as username(No registration stuff is required.)

2. Text Message - You can add your message 

3. Message Password = Create a password of your choice for the message you are creating 

• Output:

{
  "id": <YOUR_MESSAGE_ID>,
  "text_message": "<YOUR_MESSAGE>",
  "password": "<YOUR_MESSAGE_PASSWORD>",
  "web_msg_link": "<YOUR_MESSAGE_LINK_FOR_WEB>",
  "api_msg_link": "<YOUR_MESSAGE_LINK_FOR_API_CALL>"  
}

web_message_link - Using this link anyone will be able to access your message from web[Any web browser].

api_msg_link - Using this link anyone will be able to access your message by api call

Show/Read Message

import secretmessage as message

message.show("<USERNAME>","<MESSAGE_LINK>","<PASSWORD_OF_THE_MESSAGE>")

For showing or reading someone else's messages,it takes only 3 parameters:

1. Username - Just add your name as username(No registration stuff is required.)

2. Message Link - This link must the "api_msg_link" in order to read or view the message.

3. Password - This must be the exact password for the message created by other user.

• Output:

{
  "text_message" : "<USER'S_MESSAGE>"
}

Message History

import secretmessage as message

message.history("<Username>")

For getting history of your messages,it takes only 1 parameter:

1. Username - Just add your name as username(No registration stuff is required.)

• Output:

{
  "Messages": [
  	{
  	   "id": <YOUR_MESSAGE_ID>,
  	   "text_message": "<YOUR_MESSAGE>",
  	   "password": "<YOUR_MESSAGE_PASSWORD>",
  	   "web_msg_link": "<YOUR_MESSAGE_LINK_FOR_WEB>",
  	   "api_msg_link": "<YOUR_MESSAGE_LINK_FOR_API_CALL>" 
  	},
  	........
  ]
}

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

secret_message-0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

secret_message-0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file secret_message-0.1.tar.gz.

File metadata

  • Download URL: secret_message-0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for secret_message-0.1.tar.gz
Algorithm Hash digest
SHA256 29268214515160fbca237affaf41bcf3f9dbee09a34200aca9ecb9417bfc56f9
MD5 329499585615d4f13f1ea7c56ddff2ca
BLAKE2b-256 fd40e9142ce3523dd3b06ea2ed67f09d37bb1c2c469b2d2ee427ded885a8f4d0

See more details on using hashes here.

File details

Details for the file secret_message-0.1-py3-none-any.whl.

File metadata

  • Download URL: secret_message-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for secret_message-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b5db4574650d1e14dd0473fd97d49a623f183032c40ff9ef6820f2eb1c3d10f
MD5 3b0e9ecb384a9b7f51e18551bfa8ced8
BLAKE2b-256 cc9e67d9e3455467ba34ae99f2a32d113b75d174efcf0fd0d3f43120a7d4ca90

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