I made a command to markdown the table clipboard

Overview

When I wanted to copy a table such as the Web or spreadsheet to the clipboard and record it in markdown such as Backlog, it was sober and troublesome, so I made a command. ..

It is also posted on PyPI. This is the source code.

It looks like the following. clipable

Installation method

pip install clipable

Tool overview

I haven't done anything difficult here, and anyone with the following two libraries can make it by instant killing.

--pandas (to create a table from the clipboard and output it as markdown) --pyperclip (to copy to clipboard)

poetry was amazing

This time I used poetry to manage the dependencies.

poetry new package name

Create a new project with

poetry add package name

Add the dependent packages in.

Create a file called cli.py under the folder with the same name as the newly created package name. Create the main function there. And after that, add script settings so that you can execute commands with toml.

pyproject.toml


[tool.poetry.scripts]
clipable = "clipable.cli:main"

This was basically the important thing.

later

poetry build

Build with

poetry publish

Then you can register with PyPI.

Impressions

With Poetry, it was too easy to publish the package and I was impressed.

reference

-From Python package development using Poetry to PyPI release

Recommended Posts

I made a command to markdown the table clipboard
I made a command to generate a table comment in Django
I made a command to display a colorful calendar in the terminal
I made an appdo command to execute a command in the context of the app
I made a tool to generate Markdown from the exported Scrapbox JSON file
I made a function to check the model of DCGAN
I made you to execute a command from a web browser
I made a command to wait for Django to start until the DB is ready
I made a program to solve (hint) Saizeriya's spot the difference
I tried to summarize the umask command
I made a script to display emoji
I made a tool to automatically generate a simple ER diagram from the CREATE TABLE statement
I made a web application in Python that converts Markdown to HTML
I made a kitchen timer to be displayed on the status bar!
I made a library konoha that switches the tokenizer to a nice feeling
I made a program to check the size of a file in Python
I made a function to see the movement of a two-dimensional array (Python)
I made a tool to compile Hy natively
I made a tool to get new articles
Create a command to get the work log
I made a tool to estimate the execution time of cron (+ PyPI debut)
I made a tool to automatically back up the metadata of the Salesforce organization
I made a program to look up words on the window (previous development)
I made a script to record the active window using win32gui of Python
I tried to create a table only with Django
I want to scroll the Django shift table, but ...
I made a script to put a snippet in README.md
I made a Python module to translate comment outs
I made a code to convert illustration2vec to keras model
I made a python library to do rolling rank
I want to automate ssh using the expect command!
[LPIC 101] I tried to summarize the command options that are easy to make a mistake
I made a small donation to the non-profit organization "Open Source Robot Foundation" OSRF
How to test the current time with Go (I made a very thin library)
I made a python text
Made a command for FizzBuzz
I made a discord bot
I scraped the Organization member team and made a ranking
I want to automate ssh using the expect command! part2
I made a package to filter time series with python
I made a box to rest before Pepper gets tired
I want to start a jupyter environment with one command
I made a tool to create a word cloud from wikipedia
I made a dot picture of the image of Irasutoya. (part1)
I made a VGG16 model using TensorFlow (on the way)
I wrote a script to combine the divided ts files
I made a dot picture of the image of Irasutoya. (part2)
[Titan Craft] I made a tool to summon a giant to Minecraft
I want to create a Dockerfile for the time being.
I made a script to say hello at my Koshien
I made a toolsver that spits out OS, Python, modules and tool versions to Markdown
I made a tool to get the answer links of OpenAI Gym all at once
I made a class to get the analysis result by MeCab in ndarray with python
I made a function to crop the image of python openCV, so please use it.
I want to get information from fstab at the ssh connection destination and execute a command
[AWS] What to do when the ping command causes a "timeout"
I made a C ++ learning site
I want to record the execution time and keep a log.
I made a library to easily read config files with Python
[Linux] I tried to summarize the command of resource confirmation system
[sh] How to store the command execution result in a variable