Skip to main content

Create and share a Message Secretly.

Project description

Secret-Message

PyPI

GitHub code size in bytes

PyPI

Create and share Messages in a Secret way.

Install

pip install secret-message

Import the package

import secret_message

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

#from secret_message import create,show,history

Create a Message:

import secret_message 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 secret_message 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 secret_message 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.10.tar.gz (6.8 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.10-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: secret_message-0.10.tar.gz
  • Upload date:
  • Size: 6.8 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.10.tar.gz
Algorithm Hash digest
SHA256 0bdcfd573c5eec8b1cfba968be8cee7b948f1a02709cc9e6fcf2806e75c184a9
MD5 6b1866454bc34daf4ee603bddab497cc
BLAKE2b-256 37ceacf4f7e74b34dd48cad979af8d98f47d07904ab1e23f1c9db22b4a2c4822

See more details on using hashes here.

File details

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

File metadata

  • Download URL: secret_message-0.10-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 6790e5931a3c1eda327889e738a556d2eee1119001107dfbbc9e5e02682caf5d
MD5 cc08b15d9f6a75cf61898c6162b2a341
BLAKE2b-256 242045c2aa08de0ffc07e27246b2841210e5db2a3f5c1d457cd744476d2142e4

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