Code Monkey home page Code Monkey logo

ayrton's Introduction

Metrics

ayrton's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ayrton's Issues

s/ssh/remote

We can't implement all of ssh's options, so we better let the command be executed and have something else for with ssh(): ...

Extend import

We got rid of source in favor of import, but import does not handle .ay files.

Pass more objects when in remote()

When executing remote() code, we're currently passing only the local variables, but not much more. This means that any class, function or module used in the remote() code must somehow redefine those things. The simplest way would be to pass the ASTs for the (local) classes and functions, plus make sure to reimport anything needed (and pray that the modules are present in the remote host).

xonsh envvars note

Hey all, I am one of the xonsh developers, and I wanted to say that this is a very cool project. I especially like the idea of a remote execution context manager. Definitely going to be putting that into xonsh :).

However, I did want to offer one point of clarification. In the readme it says:

xonsh keeps environment variables well separated from Python ones;

This is not strictly speaking true. While we do make a syntactic distinction between internal-whitespace-insensitive "python-mode" and internal-whitespace-sensitive "subprocess-mode", the distinction isn't so clean. We actually extend Python mode in a couple of ways through operators like $ for environment lookup, ? for help, ?? for super help, $() and $[] for subprocesses, and backtick regex strings. These are all in python mode. If an environment variable $VAR is a Python list, you can do things like $VAR[::-1] or any other valid list operation.

On the other hand, in subprocess-mode, aliases can be Python functions that are called with arguments that are passed in. They never see an actual subprocess in such cases.

In essence, xonsh focuses on being a shell, as you say. But it tries to make it easy to migrate between these two modes. If you could please modify the text of the readme to reflect this, I'd greatly appreciate it!

better remote() interface

we're currently talking to the remote through the 3 streams returned by paramiko's SSHClient.run_command(). try to make it look more like sh's Command interface.

weird messages

Exception TypeError: "'NoneType' object is not callable" in <bound method ChannelStderrFile.__del__ of <paramiko.ChannelFile from <paramiko.Channel 1 (open) window=2096000 -> <paramiko.Transport at 0x9b8b4f50 (unconnected)>>>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method ChannelFile.__del__ of <paramiko.ChannelFile from <paramiko.Channel 1 (open) window=2096000 -> <paramiko.Transport at 0x9b8b4f50 (unconnected)>>>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method ChannelFile.__del__ of <paramiko.ChannelFile from <paramiko.Channel 1 (open) window=2096000 -> <paramiko.Transport at 0x9b8b4f50 (unconnected)>>>> ignored

It doesn't happen always.

status?

just recently i wanted something like this.

the python syntax + piping alone is worth the switch.

I'm curious how robust it is nowaddays. I see development has slowed down-- but that might just mean it's done ;)

ImportError: No module named Crypto

while trying to run the tests:

File "ayrton/functions.py", line 22, in
import paramiko
File "/home/mdione/.local/lib/python3.2/site-packages/paramiko/init.py", line 64, in
from .transport import SecurityOptions, Transport
File "/home/mdione/.local/lib/python3.2/site-packages/paramiko/transport.py", line 33, in
from paramiko import util
File "/home/mdione/.local/lib/python3.2/site-packages/paramiko/util.py", line 33, in
from paramiko.common import *
File "/home/mdione/.local/lib/python3.2/site-packages/paramiko/common.py", line 102, in
from Crypto import Random
ImportError: No module named Crypto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.