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
  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • 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

  • 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.

  • 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.

    InfluxDB logo
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).

Python Snippets discussion

Log in or Post with

Python Snippets related posts

  • Looking for tutorials / Hello world projects to create Neovim plugins using Pynvim

    4 projects | /r/neovim | 10 Dec 2023
  • What the Fuck Python?

    1 project | news.ycombinator.com | 27 Aug 2023
  • UltiSnips – Snippet Solution for Vim

    3 projects | news.ycombinator.com | 16 Aug 2023
  • Is LaTeX Required/Recommended in Computer Science Courses?

    1 project | /r/LaTeX | 1 Jul 2023
  • Valid Python syntax – by Nobody has time for Python

    1 project | news.ycombinator.com | 11 Jun 2023
  • Multidimensional lists creation, why the weird behavior

    1 project | /r/Python | 22 Apr 2023
  • Minimalistic neovim/vim with batteries included ?

    4 projects | /r/neovim | 18 Apr 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 22 Jun 2024
    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. Learn more →

Index

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

Project Stars
1 wtfpython 35,386
2 ultisnips 7,451
3 pytips 421
4 VSCode-LaTeX-Inkscape 301
5 demos 49
6 pythonetc 39
7 FAS-3-Application-Factory 3

Sponsored
Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com