Giter VIP home page Giter VIP logo

typora-s3-uploader's Introduction

S3 Uploader for Typora, CLI ver.

Python/boto3 based S3 image(file) uploader.

Compatiable with Typora.

How to install

  1. Clone this Repository.
git clone https://github.com/Beomi/typora-s3-uploader
  1. Install with install.sh file.

You need python3.7+ to use this package.

cd typora-s3-uploader
chmod +x *.sh
./install.sh
  1. Copy configs_example.json to configs.json
cp configs_example.json configs.json
  1. Edit configs.json with your keys.
{
  "ACCESS_KEY": "AKIAYABCDWL6FVUJABCD",
  "SECRET_KEY": "00000000/abCdeFgsLqf4Zed15qU4j27y0000000",
  "BUCKET_NAME": "my-bucket",
  "REGION_NAME": "ap-northeast-2",
  "CDN_PREFIX": "https://mybucketcdn.cloudfront.net",
  "S3_PREFIX": "img/",
  "USE_RANDOM_HASH": true
}
  • ACCESS_KEY: AWS Programmable ACCESS_KEY
  • SECRET_KEY: AWS Programmable SECRET_KEY
  • BUCKET_NAME: S3 Bucket name
  • REGION_NAME: S3 Bucket Region name
  • (Optional) CDN_PREFIX: Remove if you do not need.
  • (Optional) S3_PREFIX: Add Key prefix when uploads your file.
  • (Optional) USE_RANDOM_HASH: Add Random(UUID4) strings to the end of your filename.
  1. Add script path information to Typora app.

Add upload.sh file path to Typora like the screenshot below.

Add upload.sh file path to Typora

Example path:

/Users/beomi/coding/typora-s3-uploader/upload.sh

typora-s3-uploader's People

Contributors

beomi avatar

Stargazers

Zhang Xiang avatar GAURAV avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.