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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Connect_to_Server-CPS-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c8e5d6f56c139adf51bc10abe22eca00eba398c0fcc78017d90016ad317c26 |
|
MD5 | 65066e30e5cac2da178258654fa3c3f0 |
|
BLAKE2b-256 | a4af69f577c963072e14a00d6fabb5cd77685d24a52f0a9dfdf47a865ab4466c |
Hashes for Connect_to_Server_CPS-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 287ec120f2aa6845d89f56392f15bc1ff2a3f6f1605c242083ebc32d8680d03d |
|
MD5 | e2c9c153572f3569c71e70388f7c30ab |
|
BLAKE2b-256 | 487aaa6f82b06ded0f38adfed7bf7f27c5a7f29f54027240c24d2336b92225a5 |