Sh1Fu / Netlab

A simple python script for working with Netlab API
2 stars 0 forks source link

Make FTP connection to shop's server #3

Closed Sh1Fu closed 2 years ago

Sh1Fu commented 2 years ago

Add new class:

class ISPUpload:
    def __init__(self) -> None:
        pass 
    def check_ftp_connection(self) -> tuple:
        pass
    def upload_price(self, file_name: str, zip_file: str) -> None:
        pass
    def images_zip_upload(self, zip_file: str, ftp_conn: Any) -> None:
        pass

Functions Info:

Note:

  1. Use Environment Variables in your own server to secure credentials
  2. Check security level of your own server
Sh1Fu commented 2 years ago

It can be simpler: send one picture at a time or immediately a directory via FTP, no zip archive is needed

Sh1Fu commented 2 years ago

Solo FTP uploading so slow :<