Skip to main content

TINC python module

Project description

TINC python module and tools

This is the python module for TINC. It can be used standalone, or in conjunction with a C++ application written with TINC to provide a TINC server:

https://github.com/AlloSphere-Research-Group/tinc

tinc-python depends on numpy, matplotlib, netcdf4, filelock and jsonschema. If ipywidgets is available, tinc-python can provide interactive widgets for the jupyter notebook.

To tinc for python:

pip install tinc

To install ipywidgets for jupyter widget support:

pip install ipywidgets

Documentation

The TINC python documentation is available at: https://tinc-python.readthedocs.io/en/latest/

A set pf tutorials for tinc-python can be found in the documentation.

Try out TINC:

https://colab.research.google.com/drive/1XO-babUACUdeyp8YikofT6ySJAdjG1e8?usp=sharing#scrollTo=15R56pWsdSvg

https://colab.research.google.com/drive/1jjJhJHVvunEOXf3bUHmLNVMm_cKqls26?usp=sharing

Installing jupyterlab on macOS Through homebrew

There are many ways to install jupyterlab. Here is one we have tested to work with TINC.

brew install jupyterlab

When brew installs jupyter lab and installs python3.8, it mentions it is keg only, so need to follow brew's instructions:

Python has been installed as /usr/local/opt/python@3.8/bin/python3
You can install Python packages with /usr/local/opt/python@3.8/bin/pip3 install <package>
They will install into the site-package directory
/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
python@3.8 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have python@3.8 first in your PATH run:
echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> /Users/cannedstar/.bash_profile
For compilers to find python@3.8 you may need to set:
export LDFLAGS="-L/usr/local/opt/python@3.8/lib"
For pkg-config to find python@3.8 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig"

To install additional dependencies for tinc-python for the jupyter python:

/usr/local/opt/python@3.8/bin/pip3 install filelock matplotlib ipywidgets

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tinc-0.9.56-py3-none-any.whl (65.7 kB view details)

Uploaded Python 3

File details

Details for the file tinc-0.9.56-py3-none-any.whl.

File metadata

  • Download URL: tinc-0.9.56-py3-none-any.whl
  • Upload date:
  • Size: 65.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.13

File hashes

Hashes for tinc-0.9.56-py3-none-any.whl
Algorithm Hash digest
SHA256 ea7c9707e4115075af2ed9778bde02854e86d47a85ee57e30781069c38329068
MD5 82e5acf0fca4f063f52408bf32629099
BLAKE2b-256 1fc952d39fac8a5cb68d9e212dfd2a42efb28a9f4fdd3af8ee8329a02c20b391

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