Python Snippets

Open-source Python projects categorized as Snippets

Top 7 Python Snippet Projects

  • wtfpython

    What the f*ck Python? 😱

    Project mention: What the Fuck Python? | news.ycombinator.com | 2023-08-27
  • ultisnips

    UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!

    Project mention: LaTeX and Neovim for technical note-taking | news.ycombinator.com | 2024-02-21

    I always like people's LaTeX-based note taking setups. I'm a mathematician, so I write a lot of LaTeX too. (And I use vim, so I really like vim+Latex workflows).

    It's interesting that this post (or rather, the later post that discusses this) talks about the advantages of UltiSnips. The well-known vim-LaTeX posts written by Gilles Castel (RIP) relied pivotally on UltiSnips.

    It's not just that UltiSnips is a snippet engine. There are many of those (including LuaSnip, the other snippet engine mentioned in the OP series of articles). It's that UltiSnips can dispatch arbitrary expressions to short python code sections, and python has a great scientific library. For example, it's trivial to write a `sympy` snippet that will simplify or compute a given expression and write the output in latex for you.

    But UltiSnips works *terribly* with neovim [1] [2]. Why? Because UltiSnips uses python, and neovim's python interface is 100x slower than vim's python interface. There are design decisions for this and I'm not trying to say that neovim is bad. I use both vim and neovim. But I use vim+UltiSnips+vimtex for writing LaTeX.

    LuaSnip has interpolation too. I suppose it would be possible to write more code that calls from LuaSnip to a system like sympy (or other). But that's work. On the other hand, I think it takes a true power user to actually want or use the fancy interpolation functions.

    [1]: https://github.com/SirVer/ultisnips/issues/974

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • pytips

    Python Tips contains code snippets that will help you learn Python

  • VSCode-LaTeX-Inkscape

    ✍️ A way to integrate LaTeX, VS Code, and Inkscape in macOS

    Project mention: Is LaTeX Required/Recommended in Computer Science Courses? | /r/LaTeX | 2023-07-01

    I would also recommend only really using the nVim setup from your links if you really like Vim. IMO VSCode is much easier and feature-rich for LaTeX, not to mention the deep language support for everything else. Here is a setup in VSCode that contains some other tools that you may not need, but it works very well for the needs of myself and some of my collaborators.

  • demos

    Demonstrative scripts (by acamso)

    Project mention: Just found out that you can send SMS texts for free | news.ycombinator.com | 2023-12-17

    I came across this python script (https://github.com/acamso/demos/blob/master/_email/send_txt_msg.py) line and saw that you can send SMS texts programmatically just by sending an email to your mobile carrier.

  • pythonetc

    Posts about Python stdlib, syntax, and internals

  • FAS-3-Application-Factory

    A repo that contains a working example of Flask using the Application Factory pattern.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-21.

Python Snippets related posts

Index

What are some of the best open-source Snippet projects in Python? This list will help you:

Project Stars
1 wtfpython 35,015
2 ultisnips 7,419
3 pytips 421
4 VSCode-LaTeX-Inkscape 271
5 demos 49
6 pythonetc 36
7 FAS-3-Application-Factory 3
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com