Skip to main content

Material Toolkit cli and library

Project description

Mattoolkit CLI

Used to execute the queued VASP calculations. Needs to be installed on all clients to run jobs from the Material Toolkit.

Handling Port Restrictions

function ssh_tunnel()
{
     if [[ $(ps aux | grep "[s]sh -D 8443") ]]; then
          echo "SSH proxy already exists"
     else
          echo "SSH socks proxy created on port 8443"
          ssh -D 8443 -f -C -q -N newton
     fi
}

function tunnel_if_no_http()
{
     if [[ $(nc -vz google.com 80 -w 1 |& grep failed) ]]; then
         ssh_tunnel

         export http_proxy=socks5://localhost:8443/
         export https_proxy=socks5://localhost:8443/
     fi
}

tunnel_if_no_http

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

mattoolkit-0.0.32.tar.gz (29.4 kB view details)

Uploaded Source

File details

Details for the file mattoolkit-0.0.32.tar.gz.

File metadata

  • Download URL: mattoolkit-0.0.32.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mattoolkit-0.0.32.tar.gz
Algorithm Hash digest
SHA256 60fb84748e0daa5a268de34a57b94e1d1361ab35a1b05cecea6901b0882ac1ac
MD5 dbfd4d4f7935d0650fe746c0850a0b7c
BLAKE2b-256 738951a4e6205fe778fa55936340dabc2c606980cf52da24b89ff82b3f78fc70

See more details on using hashes here.

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