Skip to main content

Demo library

Project description

About The Code

This is a part of the project that we are working on it for the Cyber-Physical Group (i6) at the Technical University of Munich. This package would connect to a server, find the LaTeX files, integrate the LaTeX's input and include functions, and save the file at a new directory defined by user. No matter how many files the directory in the server contains. The code will go through each folder and find the LaTeX files and write them at the new directory maintaining the directory structure in the server.

How to install

You can install it by running the following line in your terminal:

pip install Connect_to_Server-CPS

Getting Started

This is an example of how you may give instructions on setting up your project locally.

from Connect_to_Server import Connection

host = "archive.cps.in.tum.de" #The host of the server
username = "your username"
password = "your password"
directory = "/mnt/current/BachelorTheses/2014/" #The directory that you want to find the LaTeX files
Save_at = "D:/CPS/HiWiProjects/Parse/data" #The new directory that you want to save the integrated LaTeX files

C = Connection.Connection(host,username,password) #You are ready to connect to the server.

C.Find_and_Integrate(directory,new_directory)

#Note: you can also run terminal commands. For example, you can run the following code to find the folders in the directory in the server:

# Connect = C.Connect()
# ssh_stdin, ssh_stdout, ssh_stderr = Connect.exec_command("ls " + directory)
# for line in ssh_stdout: print(line.strip())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Connect_to_Server-CPS-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

Connect_to_Server_CPS-0.1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page