Giter Site home page Giter Site logo

computer's Introduction

Paths

Servers have collections of roots, used to abstract away the location of files. Most methods take a path argument, which can take three forms:

  • Starting with a /: An absolute path, not relative to root.
  • Containing a /: The root is up to the first slash, and the remaining is a subpath.
  • Not containing a /: Just a root directory.

Available Servers

Abstract Servers

  • DiskServer: A server with a unique ID and a collection of named file root directories.
  • SizelessServer (DiskServer): The main top-level server class, able to transfer data and run commands. Does not monitor or limit data usage (hence, "sizeless").
  • SizelessConnectableServer (SizelessServer): A server that has a protocol for connecting to it.
  • SizelessLinuxServer (SizelessConnectableServer): A standard Linux server, with everything except run_command implemented.
  • ParamikoServer (SizelessLinuxServer): A server connected through ssh, using the Paramiko interface. The self.session variable needs to be set in the connect method before these functions will work.

Concrete Servers

  • LocalServer (SizelessServer): A server representing the local machine, using python commands.
  • LoginServer (ParamikoServer): A server using a Paramiko ssh connection, with a normal password login.

More Documentation can be found here

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.