项目作者: yogeshwaran01

项目描述 :
Host static pages and Files from your Terminal. It can host your HTML, JSON, XML, and many non-binary files. All hosted files are encrypted and compressed.
高级语言: Python
项目地址: git://github.com/yogeshwaran01/Instant-Host.git
创建时间: 2021-05-14T15:22:33Z
项目社区:https://github.com/yogeshwaran01/Instant-Host

开源协议:MIT License

下载


Instant-Host

Python application

Host static pages and Files from your Terminal. It can host your HTML, JSON, XML, and many non-binary files. All hosted files are encrypted and compressed.

Api Documenation

Full Documenation for InstantHost API

Installation

  1. $ pip install instanthost

Usage

Usage of Instanthost is very simple

Host new page

Demo

  1. instanthost ~/path/to/file

Output is like this

  1. ✌️ Hosted Successfully
  2. created_at: 05/16/2021, 16:39:56
  3. hosted_at: http://instant-host.herokuapp.com/render/U4uhdM4
  4. mimetype: application/xml
  5. private_key: U4uhdM4bnovt
  6. public_key: U4uhdM4
  7. tiny_url: https://tinyurl.com/yehcy54n

Editing the existing page

You can change the data in the file without causing any issues to link with the secret private key. Store your private key for editing content.

  1. instanthost ~/path/to/new/file --edit --key <your-private-key>

Output is

  1. ✌️ Hosted Successfully
  2. hosted_at: http://instant-host.herokuapp.com/render/U4uhdM4
  3. mimetype: application/xml
  4. private_key: U4uhdM4bnovt
  5. public_key: U4uhdM4
  6. updated_at: 05/16/2021, 16:43:34
  7. tiny_url: https://tinyurl.com/yehcy54n

Delete the existing page

  1. instanthost delete --key <your-private-key>

Like this you can host all non-binary type file from your terminal

you can host your simple static web page, blog post and etc ..