![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Python bindings for tun2socks.
You have to install the following tools to be able to install this package successfully.
go in your PATH. go 1.20.0 and above is recommended. To check go is ready,
type go version
. Also, if google service is blocked in your region(such as Mainland China), you have to configure
your GOPROXY to be able to pull go packages. For Chinese users, refer to goproxy.cn for more
information.
cmake in your PATH. To check cmake is ready, type cmake --version
.
A working GNU C++ compiler(i.e. GNU C++ toolchains). To check GNU C++ compiler is ready, type g++ --version
. These
tools should have been installed in Linux or macOS by default. If you don't have GNU C++ toolchains(especially for
Windows users) anyway:
pip install tun2socks
>>> import tun2socks
>>> help(tun2socks)
Help on package tun2socks:
NAME
tun2socks
PACKAGE CONTENTS
tun2socks
FUNCTIONS
startFromArgs(...) method of builtins.PyCapsule instance
startFromArgs(device: str, networkInterface: str, logLevel: str, proxy: str, restAPI: str) -> None
Start tun2socks with custom arguments
VERSION
2.5.1
This repository, including the package that distributes to pypi, contains tun2socks source code that's been modified to build the binding and specific API. If without explicitly remark, the version of this package corresponds to the version of the origin source code tag, so the binding will have full features as the original go distribution will have. And due to its backward compatibility, there's no plan to generate bindings for older release of tun2socks.
To make installation of this package easier, I didn't add the original tun2socks source code as a submodule. To track what modifications have been made to the source code, you can compare it with the same version under Python binding and corresponding go repository.
tun2socks-python works on all major platform with all Python version(Python 3).
Below are tested build in github actions.
Platform | Python 3.7-Python 3.11 |
---|---|
ubuntu 20.04 | :heavy_check_mark: |
ubuntu 22.04 | :heavy_check_mark: |
windows-2019 | :heavy_check_mark: |
windows-2022 | :heavy_check_mark: |
macos-11 | :heavy_check_mark: |
macos-12 | :heavy_check_mark: |
macos-13 | :heavy_check_mark: |
The license for this project follows its original go repository tun2socks and is under GPL v3.0.
FAQs
Python bindings for go tun2socks.
We found that tun2socks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.