Comments (1)
Yes, it can be usable as a module. Can you describe your use case in details? I can put the document in README.
Here is an example:
from pproxy.server import ProxyURI
host, port = 'google.com', 80
proxy = ProxyURI.compile('ss://aes-256-cfb:password@your_ip:your_port')
reader, writer = await proxy.open_connection(host, port, None, None)
reader, writer = await proxy.prepare_connection(reader, writer, host, port)
After setting up the connection, read or write the proxy as a common connection:
writer.write(b'123')
await reader.read(1024)
writer.close()
from python-proxy.
Related Issues (20)
- Reload Rules file
- How do i use authentication with my https server
- Save proxy logs
- Could not access Twitter
- Secure connection failed while generating self-signed certificate
- run docker failure HOT 1
- Hello sir I am HESSAM live in *Iran* if you take look in world news nowadays seeing in Iran ban all vpn and instagram and what up cause people against regime according netblocks report ...so glad to sign or show me way how I used this vpn code in all device I am beginner Python programming and little know code must written in text editors I want to know is it include all platform or just desktop? My second question is which file must or main for this vpn for example I see dns or ip is it include all of file or setup file just .
- pac not work
- Initial HTTP CONNECT and GET requests fail on 3.11.x, but work on 3.10.x and below HOT 1
- Run UDP socks5 on localhost error HOT 1
- Monitor bandwidth usage ? HOT 3
- Define port for outgoing packets
- socks5 udp无法使用
- http proxy fail for pproxy -l http://:9000/ -r http://httpbin.org/ -v HOT 1
- Empty reply from proxy server - even when remote target port is closed HOT 1
- Question about iptables
- Backward Proxy GET => Empty reply from server
- Dynamically set a username and password for the remote proxy
- How to print all request headers
- Possibility of redirecting traffic to warp?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-proxy.