byted-barocket


Namebyted-barocket JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-06-21 15:51:34
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

## 开发与发布

### 启动 venv 环境
```bash
python3 -m venv venv
source ./venv/bin/activate
pip install maturin
```

### 开发 
#### 编译
```bash
# 开发
maturin develop
```

#### 测试

```bash
# 测试
python
>>> import ba_rocket
>>> ba_rocket.download_files([("https://tosv.byted.org/obj/labcv.ftp/tests/output1.mp4", "./test.jpg")], 1024 * 1024, 10)
Successfully downloaded https://tosv.byted.org/obj/labcv.ftp/tests/output1.mp4 in 5.63s
```

## 发布

### 构建 for mac
```bash
# 编译
maturin build --release
```

### 构建 for linux

#### 构建 Docker 镜像


```bash
cd dockerfiles
docker build -t manylinux_maturin .
docker run --rm -v $(pwd):/io manylinux_maturin build --release  
```


### publish

```bash
# 发布
pip install --index-url https://test.pypi.org/simple/
maturin publish
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "byted-barocket",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/66/39/b9fe0c82666618f191276e50c88755c51657167375b083f15f73c2644628/byted_barocket-0.1.3.tar.gz",
    "platform": null,
    "description": "\n\n## \u5f00\u53d1\u4e0e\u53d1\u5e03\n\n### \u542f\u52a8 venv \u73af\u5883\n```bash\npython3 -m venv venv\nsource ./venv/bin/activate\npip install maturin\n```\n\n### \u5f00\u53d1 \n#### \u7f16\u8bd1\n```bash\n# \u5f00\u53d1\nmaturin develop\n```\n\n#### \u6d4b\u8bd5\n\n```bash\n# \u6d4b\u8bd5\npython\n>>> import ba_rocket\n>>> ba_rocket.download_files([(\"https://tosv.byted.org/obj/labcv.ftp/tests/output1.mp4\", \"./test.jpg\")], 1024 * 1024, 10)\nSuccessfully downloaded https://tosv.byted.org/obj/labcv.ftp/tests/output1.mp4 in 5.63s\n```\n\n## \u53d1\u5e03\n\n### \u6784\u5efa for mac\n```bash\n# \u7f16\u8bd1\nmaturin build --release\n```\n\n### \u6784\u5efa for linux\n\n#### \u6784\u5efa Docker \u955c\u50cf\n\n\n```bash\ncd dockerfiles\ndocker build -t manylinux_maturin .\ndocker run --rm -v $(pwd):/io manylinux_maturin build --release  \n```\n\n\n### publish\n\n```bash\n# \u53d1\u5e03\npip install --index-url https://test.pypi.org/simple/\nmaturin publish\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.1.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "56782285653463de07b2c8a9dff4cc94216b8456d6e5b81e782695cfac2e7b95",
                "md5": "84d4e80679526bd14a734839489eb94a",
                "sha256": "968ee09c8a077807ee1791874b58ca92a52711b75244031728bc07f677e0c2be"
            },
            "downloads": -1,
            "filename": "byted_barocket-0.1.3-cp310-cp310-manylinux_2_31_x86_64.whl",
            "has_sig": false,
            "md5_digest": "84d4e80679526bd14a734839489eb94a",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 3087489,
            "upload_time": "2024-06-21T15:51:31",
            "upload_time_iso_8601": "2024-06-21T15:51:31.052311Z",
            "url": "https://files.pythonhosted.org/packages/56/78/2285653463de07b2c8a9dff4cc94216b8456d6e5b81e782695cfac2e7b95/byted_barocket-0.1.3-cp310-cp310-manylinux_2_31_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6639b9fe0c82666618f191276e50c88755c51657167375b083f15f73c2644628",
                "md5": "dfb085413d5c74dd874ea2517f7ef03d",
                "sha256": "3b0b35f19eb7f959a0cf98661e357188329e60e60aa1ffe1aa6291f6a41aa946"
            },
            "downloads": -1,
            "filename": "byted_barocket-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "dfb085413d5c74dd874ea2517f7ef03d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 16155,
            "upload_time": "2024-06-21T15:51:34",
            "upload_time_iso_8601": "2024-06-21T15:51:34.259941Z",
            "url": "https://files.pythonhosted.org/packages/66/39/b9fe0c82666618f191276e50c88755c51657167375b083f15f73c2644628/byted_barocket-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-21 15:51:34",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "byted-barocket"
}
        
Elapsed time: 0.26092s