Coder Social home page Coder Social logo

checksumdev / mercury Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 57 KB

A lightning-fast ShareX uploader coded in Python using FastAPI.

License: GNU General Public License v3.0

Python 100.00%
sharex-uploader sharex image-uploader mongodb fastapi python310 fernet encryption uploader sharex-server

mercury's Introduction

Deprecated! ⚠️

Mercury has been deprecated in favor of Magnesium Oxide, its successor!

No support will be given here and we highly encourage you to check out Magnesium Oxide!

Mercury

A lightning fast private ShareX uploader coded in Python using FastAPI.

Warning

Mercury is not ready for production use!

Some features are not implemented yet, such as setting the uploader's domain as well as support for multiple domains.

This is a work in progress.

Features

  • Fast and easy to use API with JSON and Swagger (OpenAPI)
  • Encrypted uploads with Fernet encryption (AES-128-CBC)
  • Hash checking to ensure uploads are not tampered with

Installation

⚠️ The following installation steps have not been fully tested, and should be treated with caution...

The following installation steps are crafted for Ubuntu 20.04 LTS.

# Install Python3.10
sudo apt-add-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.10 python3.10-distutils

# Install pip
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.10

# Create a user for Mercury that we can switch to later
sudo adduser mercury
su - mercury # Switch to the new user

# Clone the repository
git clone https://github.com/ChecksumDev/Mercury.git /home/mercury/server
cd /home/mercury/server

# Install dependencies
python3.10 -m pip install -r requirements.txt

# Configure mercury
cp ext/config.py.example src/config.py
nano src/config.py # Edit the config file

# Return to the original user
exit

# Daemonize the server using systemd
sudo cp ext/mercury.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable mercury
sudo systemctl start mercury

Contributing

Contributions are welcome! Please open a PR with any changes you'd like to make.

Please ensure your contribution is in accordance with the Contributing Guidelines.

License

Mercury is licensed under the GNU General Public License v3.

mercury's People

Contributors

checksumdev avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

uptightsl

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.