# easySocket
Version 1.0.3
“easySocket” is a module for Python that’s based on the “socket” module and aims to make tasks like sending long texts or files easier/simpler.
I wrote this module, because I wanted to send an image with the socket module and found it annoying to always spend multiple lines of code to be able to send an image that was bigger than the maximum amount of bytes sendable with one socket.send command.
## Example
`python import easySocket c = host_tcp("0.0.0.0", 8000) easySocket.send_file("./flower.png", c) `
This is all you need to do to send an image file using easySocket
## Install
`shell pip install easySocket `
## Documentation
Host a tcp connection with one function:
` host_tcp(my_ip, port) `
Connect to a tcp conenction with one function:
` connect_tcp(ip, port) `
Send a file over a tcp connection independent of size:
`python send_file(location, recipient) `
Send a text over a tcp connection independent of size:
` send_text(text, recipient) `
Receive data from one of the two functions above:
` rcv_data(sender) `
## Contributors
Niklas Ziermann
## Copyright & License
© Niklas Ziermann
MIT License
Metadata
Release files for easySocket 1.0.3
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 |
|---|---|---|---|---|
| easySocket-1.0.3.tar.gz | 2.9 kB | Without provenance | Details for easySocket-1.0.3.tar.gz |
Release files / easySocket-1.0.3.tar.gz
| Download URL | easySocket-1.0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf84213e603dda86c04543073b48fe3a45399833f63d7e41a1813eb1b618ab04
|
|
BLAKE2b-256 checksum How to use checksums |
858a77be06871e2b1986ea6ec2689cc6fd91e1673495de25f4e111109cf697c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5
|
Security for easySocket 1.0.3
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.