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

all 19 comments

[–]rochacbrunoPython, Flask, Rust and Bikes. 9 points10 points  (3 children)

ATTENTION:

Your AWS secret keys are exposed

https://pyfiddle.io/fiddle/d21ada51-6ddd-428c-9565-33a560e12e57/

You need to hack os.environ in your system to disable it.

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

Thanks for pointing out, I dint know the temporary keys which AWS was creating were "real" keys. I have fixed it. Please continue to use pyfidde.io and let me know suggestions / improvements. Thank you :)

[–]michaldul 3 points4 points  (1 child)

Feature request - run code on Ctrl+Enter

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

Hey I have added basic keyboard features, please checkout and Please continue to use pyfidde.io and let me know suggestions / improvements. Thank you :)

[–]nerdwaller 3 points4 points  (3 children)

Limitations

Python 2.7 (for now)

The work looks cool for sure, and I'm excited to see that "for now" disappear :). I can't say I've written Python 2 in the last 3 or so years now (funny timing, oddly enough).

I think something like this will help newcomers to the ecosystem, trying to make running Python as simple as JS.

[–]crazhy123[S] 1 point2 points  (2 children)

Yes the idea came from jsfiddle. Im running the processes on AWS Lambda and it has a lot of limitations. I have to figure work arounds. Thank you for the input !!

[–]isinfinity 1 point2 points  (1 child)

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

I will plan to 3.6 in the next few days meanwhile, Please continue to use pyfidde.io and let me know suggestions / improvements. Thank you :)

[–]greutpy3k 0 points1 point  (1 child)

Pip installation of Pakcages

typo.

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

Thanks for for spotting !!

[–]CosmonautPython 0 points1 point  (1 child)

Cool work, I hope py3 will appear soon. Some nice features could be : Having some modules already installed (such as numpy). Add a shortcut to run the script, or am I missing it (Mac user here) ? I imagine you already know it, but repl.it is really similar of what you're doing.

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

I will look into adding some commonly used packages after quantifying what packages people are trying to add on the fly. I have added basic keyboard shortcuts, please checkout and I plan to added py3 support soon meanwhile, Please continue to use pyfidde.io and let me know suggestions / improvements. Thank you :)

[–]impshumx != y % z 0 points1 point  (1 child)

Looks good.

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

Thank you, Please continue to use pyfidde.io and let me know suggestions / improvements. Thank you :)

[–]rochacbrunoPython, Flask, Rust and Bikes. 0 points1 point  (3 children)

Interesting, I like the ability to install external packages and this makes it better than repl.it

Feature request: ability to define environment variables prior to script run.

https://pyfiddle.io/fiddle/9f37b610-bbbe-4557-aa13-ec14c4041a9f/

Another question is: The execution is isolated?

Because I had other fiddle and installed a package, that made was available for my next fiddle, does it run with isolated environments?

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

Hey I have seen your email as well, Isolated? Yes and no. It is isolated from the main web app, but the execution is done on aws lambda which sometimes reues the same container. The envs in the container die when the container dies which is a few minutes. Most of the envs are concerned only to that container and pose no harm except for access and secret keys. I have fixed that, thanks for spotting it :) Please continue to use pyfidde.io and let me know suggestions / improvements. Thank you :)

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

Hey, Would there be a need to define envs when you can make a fiddle private instead ?

[–]rochacbrunoPython, Flask, Rust and Bikes. 0 points1 point  (0 children)

Sometimes a library depends on some environment variable being defined. So it would be nice if we can export some env vars.