dgonzo27 / py-iot-utils Goto Github PK
View Code? Open in Web Editor NEWStateless PyPI packages to be used across an Azure IoT Platform as it relates to software written in Python.
Home Page: https://py-iot-utils.com
License: MIT License
Stateless PyPI packages to be used across an Azure IoT Platform as it relates to software written in Python.
Home Page: https://py-iot-utils.com
License: MIT License
Describe the bug
Connecting to Bambu Labs X1C ftps server, which appears to be running vsFTPd 3.0.3 based on the welcome message, get an error unexpected exception occurred: 522 SSL connection failed: session reuse required
when attempting to do something simple like ftps_client.list_files("/")
. Trying to upload a file I get unexpected exception occurred: EOF occurred in violation of protocol (_ssl.c:2426)
To Reproduce
Steps to reproduce the behavior:
from iot.ftps.client import IoTFTPSClient
ftps_client = IoTFTPSClient(
ftps_host="myServerIP",
ftps_port=990,
ftps_user="myServerUsername",
ftps_pass="myServerPass***",
ssl_implicit=True,
)
ftps_client.list_files("/")
ftps_client.upload_file("C:\\Users\\jneil\Documents\\3D Prints\\PrinterUprades\\OrdBotHadron\\OctoprintRelated\\printer-ws-client\\bambu_local\\test.3mf", "/test.3mf")
Expected behavior
To be able to list and upload files.
Additional context
I'm able to connect and list/upload files using filezilla ftp client as described in the link below without issue, so know the login information is correct.
https://forum.bambulab.com/t/we-can-now-connect-to-ftp-on-the-p1p/6464
my username ashahbazi58
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A least recently used cache library.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
Yes, I would like to be able to perform some additional common Azure Storage operations, but I don't want to subclass this package or write my own. I'm requesting that these functions are added to the iot-storage-client package.
Describe the solution you'd like
New Functions:
Describe alternatives you've considered
I considered sub-classing the package to add this functionality myself, or adopting this code and establishing my own package with the added functionality. It would be much cleaner to have this available through the existing package.
To-Do List:
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Create a function that generates a container-level SAS token/URI
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Looking at source. Isn't calling iot-ftps-client a FTPS client highly incorrect or even fraud, if it uses insecure plain FTP when instantiated without ssl_implicit=True
? Sorry if I am wrong.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
At least 80% code coverage for each packages test suite.
Is your feature request related to a problem? Please describe.
We need to transfer files on the edge with an SFTP server.
Describe the solution you'd like
We need to transfer files on the edge with an SFTP server.
Why would you like to contribute to this project?
As a lead developer on an enterprise IoT Platform, I would love to contribute to this project as I leverage and use all of these packages in our platform. Allowing me to contribute would offer valuable insight into industry adoption while simultaneously allowing me to support stateless interactions that can be leveraged outside of our platform.
What are your qualifications?
You know me - I wrote this thang.
What are you looking to contribute and how many hours per week?
Probably 6 - 10 hours per week, looking to contribute new features, maintenance and documentation.
Do you understand that these contributions are open-source and there is no pay for contributing?
Yes.
Describe the bug
A clear and concise description of what the bug is.
When leveraging the upload_file
function, the storbinary call attempts to read the file from within an open context. It should simply pass the bytes of the opened file instead of reading - this currently causes the function to fail.
To Reproduce
Steps to reproduce the behavior:
upload_file
function of the iot-ftps-client.Expected behavior
A clear and concise description of what you expected to happen.
File upload success.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.