IMPORTANT NOTE: This is more an exercice for me to learn how to make installable packages than an actual useful package. It is not finished, so expect errors and a lot of missing stuff.
cpp_python_socket
Simple TCP/IP socket comunication wrapper between c++ and Python for IPC.
General Information
To install c++ package, read/edit source code and more info check out the repo: https://github.com/OleguerCanal/cpp_python_socket.git
Usage examples
Python Server:
from CppPythonSocket import Server
import cv2
if __name__ == "__main__":
server = Server("127.0.0.1", 5002)
# Check that connection works
message = server.receive()
print("[CLIENT]:" + message)
server.send("Shut up and send an image")
# Receive and show image
image = server.receive_image()
cv2.imshow('SERVER', image)
cv2.waitKey(1000)
server.send("Thanks!")
C++ client:
#include <iostream>
#include "client.hpp"
int main() {
socket_communication::Client client("127.0.0.1", 5002);
// Check that connection works
client.Send("Hello hello!");
std::string answer = client.Receive();
std::cout << "Server: " << answer << std::endl;
// Load image and send image
cv::Mat img = cv::imread("cpp/lena.png");
client.SendImage(img);
std::string answer2 = client.Receive();
std::cout << "Server: " << answer2 << std::endl;
}
Metadata
Release files for CppPythonSocket 0.2.2
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 |
|---|---|---|---|---|
| CppPythonSocket-0.2.2.tar.gz | 2.8 kB | Without provenance | Details for CppPythonSocket-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CppPythonSocket-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for CppPythonSocket-0.2.2-py3-none-any.whl |
Total release size: 7.0 kB
Release files / CppPythonSocket-0.2.2.tar.gz
| Download URL | CppPythonSocket-0.2.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
630a27e2e180bbc834e1f43857b9f92702f0757f73fa915dca817b5458c3763b
|
|
BLAKE2b-256 checksum How to use checksums |
5de00aa7d24fda5a6cc001aef235783d6112f3bf778582d3316ae29c28bfed10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8
|
Release files / CppPythonSocket-0.2.2-py3-none-any.whl
| Download URL | CppPythonSocket-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97293ec33850e3d19af4aa3cb239bc2c2902c2ffbd6423768e489adcebbdabf6
|
|
BLAKE2b-256 checksum How to use checksums |
2099d9e126546808f7f060e72629c4deb69da7c20ecd13f2952205cb829530a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8
|
Security for CppPythonSocket 0.2.2
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.