Metadata-Version: 2.1
Name: myhttpcatlab
Version: 0.0.3
Summary: Httpcat Resource Storage SDK
Home-page: https://github.com/lazy-wangxl/myhttpcatlab
Author: Httpcat Information Technologies Co., Ltd.
Author-email: xiaolongwang501@gmail.com
Maintainer-email: xiaolongwang501@gmail.com
License: MIT
Download-URL: https://github.com/lazy-wangxl/myhttpcatlab
Project-URL: Source, https://github.com/lazy-wangxl/myhttpcatlab.git
Description: # myhttpcatlab-python-sdk
        ## myhttpcatlab
        myhttpcatlab [GitHub](https://github.com/shepf/httpcat-python-sdk)配合 [httpcat服务端项目](https://github.com/shepf/httpcat-release)使用，是httpcat服务的客户端sdk。
        
        Httpcat SDK for Python 可以方便的让你上传下载你的httpcat服务文件。
        
        ## 安装
        通过pip安装
        ```bash
        $ pip install myhttpcatlab
        ```
        
        检查是否安装成功
        ```bash
        (venv) [root@dev ~]# python
        Python 3.8.12 (default, Aug  6 2023, 18:06:17)
        [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import myhttpcatlab
        >>> httpcat.__version__
        '0.0.1'
        >>>
        ```
        
        使用:
        ```
        from myhttpcatlab.services.storage.uploader import upload_file
        
        # file_path = '/path/to/file'
        file_path = '/root/aaa.txt'
        upload_token = 'admin_349015:ggjTvfW266vy6KG7zOsqJZCtN3c=:eyJkZWFkbGluZSI6MH0='
        upload_url = 'http://httpcat.cn/api/v1/file/upload'
        
        response = upload_file(file_path, upload_token, upload_url)
        print(response.text)
        ```
        根据你搭建myhttpcatlab，修改upload_token，upload_url信息
        upload_token来自httpcat服务上传token管理界面。
        
        
        正常输出结果：
        ```bash
        >>> print(response.text)
        {"errorCode":0,"msg":"success","data":"upload successful!"}
        ```
        
        
Platform: any
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Provides-Extra: dev
