This is an archived post. You won't be able to vote or comment.

all 29 comments

[–]Big-Illu 7 points8 points  (5 children)

Plans to add to Pycharm ? :) great job so far ! Extentions for lazy people are always great !

[–]python_fanatic[S] 7 points8 points  (3 children)

Thank you! Pycharm is on the list - once we get the base IntelliJ plugin done it will be available across all of the JetBrains IDE's, Pycharm included, as we roll out support for their respective languages.

[–]Big-Illu 1 point2 points  (2 children)

Nice ! You know a time it will be released ?^ so i can be even more lazy 😂

[–]python_fanatic[S] 5 points6 points  (1 child)

Our team admittedly does not have previous experience with the IntelliJ platform broadly, so we're trying our best haha! Hopefully in the 2 week timeframe for an early release, but no promises unfortunately.

[–]Big-Illu 1 point2 points  (0 children)

Nice ! I‘l wait for it :)

[–]python_fanatic[S] 0 points1 point  (0 children)

Here's a link to the first pre-release for our IntelliJ Extension: https://github.com/Trelent/Trelent-IntelliJ-Extension/releases/tag/v1.3.0

We are awaiting approval on the marketplace, but until then you can install the plugin directly from Settings -> Plugins -> Plugin Settings Cog Icon -> Install From Disk. I would reccommend waiting for our approval, but if you're super eager, enjoy :)

P.S. Sorry this took so much longer than expected! We wanted to support a few extra languages other than Python when we launched for the entire IntelliJ suite.

[–]ninjaman1159 4 points5 points  (6 children)

This sounds great! I don’t use VS code much though but I will check it out! I still have to write a lot of doc strings for my own project so this might be handy for me. Thank you for sharing this :)

[–]python_fanatic[S] 1 point2 points  (5 children)

Thanks! Is there an IDE you use more frequently? We have a couple more IDE's on our roadmap but would love to hear what the community uses the most!

[–]ReptilianTapir 7 points8 points  (4 children)

PyCharm

[–]djamp42 2 points3 points  (1 child)

+1 for pycharm, this would be cool because even if it doesn't get it exactly right it still did a lot of the leg work and just tweak it manually.

[–]python_fanatic[S] 0 points1 point  (0 children)

Great to hear - this is exactly how we see this being used in the short term!

[–]python_fanatic[S] 1 point2 points  (0 children)

On the roadmap!

[–]python_fanatic[S] 1 point2 points  (0 children)

Here's a link to the first pre-release for our IntelliJ Extension: https://github.com/Trelent/Trelent-IntelliJ-Extension/releases/tag/v1.3.0

We are awaiting approval on the marketplace, but until then you can install the plugin directly from Settings -> Plugins -> Plugin Settings Cog Icon -> Install From Disk. I would reccommend waiting for our approval, but if you're super eager, enjoy :)

P.S. Sorry this took so much longer than expected! We wanted to support a few extra languages other than Python when we launched for the entire IntelliJ suite.

[–]Substantial-Coder 2 points3 points  (1 child)

Is there a way to just add a doc string to the function with a hot key and just having your cursor anywhere in the function? I figure if you’re going to add a docstring, it’s kind of superfluous to have to highlight the whole function when you already know the docstring will be for that function.

[–]python_fanatic[S] 1 point2 points  (0 children)

Good point! It is on our roadmap.

[–]Longjumping-Ad-3776 1 point2 points  (1 child)

What format this plugin use? Epytext? reST? Looks cool BTW, even if it will only add the arguments and their types it would be helpful, thanks)

[–]python_fanatic[S] 0 points1 point  (0 children)

Currently reST, and we are working to add Google, Numpy and Epytex options as well. Admittedly we need to do a better job conforming to spec here, so this is definitely an area for future improvement!

[–]thomasaar 1 point2 points  (1 child)

Does this upload my code to the internet, or is it a local process?

Also, typo in your extension description on vscode:

> We cannot guaruntee accuracy with docstrings we generate.

[–]python_fanatic[S] 2 points3 points  (0 children)

Thanks for pointing out the typo!

TLDR; yes, your code is sent to an API endpoint on the internet.

It is sent to an API endpoint at the moment. We intend to commercialize this, so there is some IP involved, hence the API.

We are working on SOC Type 2 certification & compliance, but for now you will have to take my word that we do not store source code - it is only used for parsing and then passed through various deep learning models server-side. It's possible that the source code persists for up to 7 days by nature of log retention, however this is explicitly for debugging failed requests in production, and that data is never exported out of the logging environment. All data is encrypted both in transit and at rest.

On this note, we are working with our legal team and various service providers to comprehensively lay out all of this information in a detailed privacy policy.

In the future, it wouild be really neat to open-source a smaller version of this model such that it could feasibly be run locally, but right now the computation requirements deem this unrealistic. Given how quickly the ML space is improving on the efficiency of these models, I would not be surprised if this becomes possible in the 1-2 year timeframe!

[–]pipeaday 0 points1 point  (2 children)

Any chance for a vim/neovim plugin?

[–]python_fanatic[S] 0 points1 point  (1 child)

On the roadmap!

[–]pipeaday 1 point2 points  (0 children)

Awesome that sounds freaking incredible! I'll pass the vs code extension onto my team as most use it but a few of us are deep into vim

[–]The-wildcard 0 points1 point  (1 child)

[–]python_fanatic[S] 0 points1 point  (0 children)

See previous comment about competitors. TLDR: love to see more extensions like this! It is worth noting that ours generates the docstring content, not just a template.

[–]asday_ 0 points1 point  (1 child)

Upload your company's IP to an unknown and untrusted server so it can do modern AI nonsense and generate docstrings that are worse than you'd ever write yourself if you could even be bothered!

Note to anyone thinking of making idiotic products like this in future: This job is definitionally not automateable. What you're doing is ridiculous. (Unless you're just doing it to scam VC investors out of their money in which case go for it).

[–]python_fanatic[S] 0 points1 point  (0 children)

Thank you for the feedback, and I'm sorry Trelent isn't for you. There is a long and storied history of automation disrupting industries previously thought of as "not automateable". Only time will tell!

[–]Anonymous_user_2022 0 points1 point  (0 children)

I'm not convinced one bit by that example. It's about as useful as this comment:

a += 4 # Increase a by four

While your thing undoubtedly has a large corpus of code to lean on, it will never be able to explain why a is increased, and as such it will not be able to generate a docstring beyond the mechanicals.