PasteMe - Paste Codes From Your Terminal
Legends believe that this project is developed from space..!! Let's see..

Search for a command to run...
Legends believe that this project is developed from space..!! Let's see..

Wow 😍 Congrats on winning the prize. I really loved the package. I'm planning to contributing to the package.
Thank you Marcus. Awesome hearing that. I'm looking forward for your contributions.
PasteMe is awesome Sandra. 😍 I'll be using this tool for sure. I wish I could contribute to the project and add my fav features. I wish you luck in the competition.
Sure you can. Check out the development section. (dev guides will be added soon)
Thanks for the shout out. I'm Sadra by the way. 😁
It's now fixed. Thanks for mentioning. :)
Really liked the problem that PasteMe is trying to solve! As developers, we often face this problem of not finding our code when we want to reuse them. Thanks for developing PasteMe🥳!
Also check out my submission - https://blogsbyindrajit.hashnode.dev/evolve! I hope you'll like it❤️!
Much appreciate your kind words. So glad you found it useful. Even though I'm not a crypto-guy, your dashboard looked fire to me!! That's awesome. Wish you the best of luck in the Hackathon! :)
I tested my Hashnode hackathon-winning project using a complex CLI-integrated Passmark test case.

LLM tools you need after your Hashnode article is published.

I tried Hashnode Docs for the first time. Here are my impressions and suggestions for improvements.

Since Python introduced the ability to add generic types to functions, the language has become much more type-friendly and encourages you to follow this convention for more maintainable code. Obviously, this will lead to a better development experien...

In this quick tutorial, I’ll show you a GitHub action that lets you add a small, cool-looking chart badge that shows your Python packages' download rate over the past weeks. This method is completely free and open-source. https://github.com/lnxpy/pyp...

PasteMe is a modern open-source RESTful pastebin service that allows users to paste their source codes, snippets, and code blocks right from their command-line interfaces and terminals!
Legends claimed that this project is developed from space! So let's find out.

I personally was familiar with pastebin services. Since I'm so into those black and dark interfaces and CLIs, I needed a piece of software that enables me to share my programming bugs, issues, or even gold code pieces with others in the community. I found some packages but I was looking for something fancier with more options until Hashnode announced an extraordinary Hackathon partnering with PlanetScale and that made me open a new fresh terminal tab immediately and run $ git init and start developing my idea named "PasteMe"!
As developers, we are always developing a system full of architectures, components, and dependencies. It's so common we run into issues and problems during worktime. There's been a lot of times when I was stuck in making a function work perfectly but the key to that perfectness was in another configuration file from another module in a package. That being said, sometimes after hours of boring work time and struggling with fixing my bugs, my buggy source codes were whispering to me like "Paste me Sadra..please.. do it.. Paste me up there.." which brings us to PasteMe!
There is a well-structured RESTful service behind PasteMe which allows users to paste their snippets and code blocks to the powerful PlanetScale databases by using pasteme-cli package. The endpoints are designed responsively, meaning all developers from other platforms can build their own tools and interact with PasteMe's APIs in their products.
pasteme-cli Python package (SDK)In order to use PasteMe, simply install the pasteme-cli package via either pip package manager or by building the package source and dive through the codes.
Run the following command and make this package available on your machine.
$ pip install pasteme-cli
...
$ pasteme --help
Imagine I have a Python function in my program.py file that doesn't print out the greetings message for some reason. Let's paste it using PasteMe!
def hello_world(name):
return f'Hello {name}. How are you today?!'
if __name__ == '__main__':
name = input('Your name: ')
hello_world(name)
I open a new terminal/cmd tab. Since I'm an Atom (A popular text editor) fan, I want to paste it with the atom one dark theme.
$ pasteme -t "My hello_world() doesn't show the messages" -l python -T atom-one-dark program.py
PASTE --> https://pasteme.pythonanywhere.com/paste/2425b
$
Right after running that command, I can see the URL to my paste. Let's browse it.

And volla!
Now, I want to paste everything inside the if statement only and keep it for one month.
$ pasteme ... -s 5 -x 1m program.py

PasteMe supports various programming and markup languages for highlighting at the moment. You can paste your source codes in different popular themes as well!
-l bash script.sh)-l c program.c)-l cpp program.cpp)-l csharp program.cpp)-l css styles.css)-l go service.go)-l html index.html)-l java program.java)-l js script.js)-l json data.json)-l lua program.lua)-l md README.md)-l php login.php)file.txt - no options needed)-l python setup.py)-l rb program.rb)file.type - no options needed)-T dark file.type)-T github file.type)-T github-dark file.type)-T atom-one-light file.type)-T atom-one-dark file.type)Time for bad news! There is a limitation for your pastes. The snippets you paste into PasteMe can live for one week by default however you can increase it up to one month or even decrease it to one day!
$ pasteme ... -x (1d/1w/1m) main.c
The Python Package Index, abbreviated as PyPI, is the official third-party software repository for Python. This is where pasteme-cli is archived as well. By checking the home page of PasteMe, you'll notice the following section.

There is a model called Statistic in pypi application of the project which is responsible for storing all statistics gathered from api.github.com and https://pypistats.org/api. Therefore, I designed a scheduled task that runs a custom command every day at a specific time and that command actually updates the Statistic model by creating a new record to the table based on the information responded from the endpoints.
In this section, we're going to talk about the tools and frameworks that I used to build up PasteMe.
pasteme-cli Python package)Both the package and web service have tests that make the development process way easier with a lower risk of failure. Keep up with the README/CONTRIBUTING docs and make your way towards the contribution.
Check out PasteMe's readme document for a complete local installation guide. You can also connect your locally cloned PasteMe to a PlanetScale FREE database by following the guide as well.
I'm truly glad about the partnership between Hashnode and PlanetScale that made this awesome July's Hackathon! Thanks for your awesome services and support. 🌹