jackcrawley / pygen Goto Github PK
View Code? Open in Web Editor NEWPython code generation in Emacs with Elpy and python-mode
License: GNU General Public License v3.0
Python code generation in Emacs with Elpy and python-mode
License: GNU General Public License v3.0
Hi !
I'm just discovering your project while browsing the melpa PR, so congrats, that looks really useful, come tell on reddit as soon as this is accepted in melpa ! and I figured I should share some utils of mine: https://gitlab.com/vindarel/redbaron4emacs Our projects are complementary but do things in common, like adding a decorator (I suggest a list of decorators already used in the file, it's a bit quicker, and also if it is "classmethod" I remove an eventual "self".). My initial goal was to change method signatures, so I have functions to add, rename, remove a method argument, rename the current def, etc, while trying (not very well) to refactor inside a def or in the project when needed/asked.
Also, I wanted to have a solid foundation to manipulate python code, so I use the redbaron lib (a bit, not always, but I believe it has great potential).
Lastly, I rely a lot on an Hydra to expose all my commands, I suggest you think about it. That way, I may very well add a key to call pygen: it's complementary.
Thanks for your attention !
Hi, a python-mode.el developer here. Will send you a PR which updates the developer repo of python-mode.el onto https://gitlab.com/python-mode-devs/python-mode
Awesome package, I've been looking for something like this!
One thing I've found is that pygen-insert-super
assumes that the 1st arg is always self
. Convention is to call the first arg self
and for static methods cls
or _class
, but that's just convention, it could be called anything.
It'd be great if pygen-insert-super
grabbed the name of the first argument from the method definition. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.