nanonisTCP
Python module for communicating to nanonis via TCP. I am actively developing this so if you have any requests or find any bugs, feel free to raise an issue.
Installing
Install with pip:
pip install nanonisTCP
Installing from source:
Clone the repository, navigate to the root directory and run pip install .
Using
The following code demonstrates how to change tip bias.
from nanonisTCP import nanonisTCP
from nanonisTCP.Bias import Bias
TCP_IP = '127.0.0.1' # Local host
TCP_PORT= 6501 # Check available ports in NANONIS > File > Settings Options > TCP Programming Interface
NTCP = nanonisTCP(TCP_IP, TCP_PORT, version=13520) # This is how you establish a TCP connection. NTCP is the connection handle.
# Check your nanonis version in Nanonis > help > info and enter the RT Engine number
bias = Bias(NTCP) # Nanonis Bias Module - Pass in the connection handle
bias.Set(1.1) # Set bias to 1.1 V
v = bias.Get() # Get the current bias
print("Bias: " + str(v) + " V") # Confirm bias has been set
NTCP.close_connection() # Close the connection.
See any of the xxxTest.py scripts to see how each module can be implemented in more detail.
Testing
After installing, you can test any of the modules using the sctipts in the test folder. To test all of the modules, run test.py Note that Nanonis must be open for the tests to pass.
Citing
If you use nanonisTCP, please consider citing it: 10.5281/zenodo.7402664
Metadata
Release files for nanonisTCP 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nanonistcp-1.1.5.tar.gz | 48.5 kB | Without provenance | Details for nanonistcp-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanonistcp-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for nanonistcp-1.1.5-py3-none-any.whl |
Total release size: 115.3 kB
Release files / nanonistcp-1.1.5.tar.gz
| Download URL | nanonistcp-1.1.5.tar.gz |
|---|---|
| Size | 48.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
527f5c5ec12a3d86cc88697c69eba33ed7dbbee293affea538046d478f0dab8f
|
|
BLAKE2b-256 checksum How to use checksums |
2a01436f7007313ee4dc52efb28db95bc5c7f8bc48d723560a755ce6d99e010c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.1
|
Release files / nanonistcp-1.1.5-py3-none-any.whl
| Download URL | nanonistcp-1.1.5-py3-none-any.whl |
|---|---|
| Size | 66.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dbe02a81b96f96650961d9b1b3ea33ac2940934d00a96b2c23535dbe9f3eb27
|
|
BLAKE2b-256 checksum How to use checksums |
eab6ee129e10e70953e00d1ec357a6d655b17fa105ca0cb1e4bb69b209e3d8c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.1
|
Security for nanonisTCP 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.