Name | binaryai JSON |
Version |
0.8.4
JSON |
| download |
home_page | https://www.binaryai.cn/ |
Summary | BinaryAI-SDK is a library provides an abstracted client module to simplify the procedure of uploading file for analysis. |
upload_time | 2025-06-24 13:16:13 |
maintainer | None |
docs_url | None |
author | binaryai |
requires_python | <4.0,>=3.9 |
license | GPLv3 |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# BinaryAI Python SDK

[](https://binaryai.readthedocs.io/)
[](https://pepy.tech/project/binaryai/month)
[](https://gitter.im/binaryai/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[BinaryAI](https://www.binaryai.cn) is a binary file security analysis platform. This SDK aims at providing
a simple client to upload file and get analysis result. It also works as
a demo on calling BinaryAI's GraphQL API directly.
To use SDK, you need a valid credential. Read [BinaryAI docs](https://www.binaryai.cn/doc/) about detailed instructions.
## Dependency
Python >= 3.9
## Download and install
```bash
python3 -m pip install binaryai
```
## Quick start
See the [SDK document](https://binaryai.readthedocs.io) for guide.
## Internals
### Endpoints
The default endpoint is `https://api.binaryai.cn/v1/endpoint`.
### API Credentials
API Credentials are used for signing requests. We suggest you using our SDK or our library to sign it, but you can also
have your own implementation. We are using the signing method `TC3-HMAC-SHA256`, same with the Tencent Cloud. You can
read their [document](https://cloud.tencent.com/document/product/213/30654) about how to sign requests. BinaryAI would
require following fields:
```toml
Region = "ap-shanghai"
service = "binaryai"
Action = "BinaryAI"
Version = "2023-04-15"
```
## Additional Reading
Read the [Changelog](https://www.binaryai.cn/doc/zh/releasenotes/) of our product, and hope you can also have fun reading papers related to our job:
1. Yu, Zeping, et al. "Codecmr: Cross-modal retrieval for function-level binary source code matching." Advances in Neural Information Processing Systems 33 (2020): 3872-3883.
2. Yu, Zeping, et al. "Order matters: Semantic-aware neural networks for binary code similarity detection." Proceedings of the AAAI conference on artificial intelligence. Vol. 34. No. 01. 2020.
3. Li, Zongjie, et al. "Unleashing the power of compiler intermediate representation to enhance neural program embeddings." Proceedings of the 44th International Conference on Software Engineering. 2022.
4. Wong, Wai Kin, et al. "Deceiving Deep Neural Networks-Based Binary Code Matching with Adversarial Programs." 2022 IEEE International Conference on Software Maintenance and Evolution (ICSME). IEEE, 2022.
5. Wang, Huaijin, et al. "Enhancing DNN-Based Binary Code Function Search With Low-Cost Equivalence Checking." IEEE Transactions on Software Engineering 49.1 (2022): 226-250.
6. Jia, Ang, et al. "1-to-1 or 1-to-n? Investigating the Effect of Function Inlining on Binary Similarity Analysis." ACM Transactions on Software Engineering and Methodology 32.4 (2023): 1-26.
7. Wang, Huaijin, et al. "sem2vec: Semantics-aware Assembly Tracelet Embedding." ACM Transactions on Software Engineering and Methodology 32.4 (2023): 1-34.
8. Jiang, Ling, et al. "Third-Party Library Dependency for Large-Scale SCA in the C/C++ Ecosystem: How Far Are We?." Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis. 2023.
Raw data
{
"_id": null,
"home_page": "https://www.binaryai.cn/",
"name": "binaryai",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "binaryai",
"author_email": "binaryai@tencent.com",
"download_url": "https://files.pythonhosted.org/packages/b9/5c/a623cf3e1a8c133ee3ed6c023ec70aa9b777bea06133b62bffd47569a9b9/binaryai-0.8.4.tar.gz",
"platform": null,
"description": "# BinaryAI Python SDK\n\n\n[](https://binaryai.readthedocs.io/)\n[](https://pepy.tech/project/binaryai/month)\n[](https://gitter.im/binaryai/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\n\n[BinaryAI](https://www.binaryai.cn) is a binary file security analysis platform. This SDK aims at providing\na simple client to upload file and get analysis result. It also works as\na demo on calling BinaryAI's GraphQL API directly.\n\nTo use SDK, you need a valid credential. Read [BinaryAI docs](https://www.binaryai.cn/doc/) about detailed instructions.\n\n## Dependency\n\nPython >= 3.9\n\n## Download and install\n\n```bash\npython3 -m pip install binaryai\n```\n\n## Quick start\n\nSee the [SDK document](https://binaryai.readthedocs.io) for guide.\n\n## Internals\n\n### Endpoints\n\nThe default endpoint is `https://api.binaryai.cn/v1/endpoint`.\n\n### API Credentials\n\nAPI Credentials are used for signing requests. We suggest you using our SDK or our library to sign it, but you can also\nhave your own implementation. We are using the signing method `TC3-HMAC-SHA256`, same with the Tencent Cloud. You can\nread their [document](https://cloud.tencent.com/document/product/213/30654) about how to sign requests. BinaryAI would\nrequire following fields:\n\n```toml\nRegion = \"ap-shanghai\"\nservice = \"binaryai\"\nAction = \"BinaryAI\"\nVersion = \"2023-04-15\"\n```\n\n## Additional Reading\n\nRead the [Changelog](https://www.binaryai.cn/doc/zh/releasenotes/) of our product, and hope you can also have fun reading papers related to our job:\n\n1. Yu, Zeping, et al. \"Codecmr: Cross-modal retrieval for function-level binary source code matching.\" Advances in Neural Information Processing Systems 33 (2020): 3872-3883.\n2. Yu, Zeping, et al. \"Order matters: Semantic-aware neural networks for binary code similarity detection.\" Proceedings of the AAAI conference on artificial intelligence. Vol. 34. No. 01. 2020.\n3. Li, Zongjie, et al. \"Unleashing the power of compiler intermediate representation to enhance neural program embeddings.\" Proceedings of the 44th International Conference on Software Engineering. 2022.\n4. Wong, Wai Kin, et al. \"Deceiving Deep Neural Networks-Based Binary Code Matching with Adversarial Programs.\" 2022 IEEE International Conference on Software Maintenance and Evolution (ICSME). IEEE, 2022.\n5. Wang, Huaijin, et al. \"Enhancing DNN-Based Binary Code Function Search With Low-Cost Equivalence Checking.\" IEEE Transactions on Software Engineering 49.1 (2022): 226-250.\n6. Jia, Ang, et al. \"1-to-1 or 1-to-n? Investigating the Effect of Function Inlining on Binary Similarity Analysis.\" ACM Transactions on Software Engineering and Methodology 32.4 (2023): 1-26.\n7. Wang, Huaijin, et al. \"sem2vec: Semantics-aware Assembly Tracelet Embedding.\" ACM Transactions on Software Engineering and Methodology 32.4 (2023): 1-34.\n8. Jiang, Ling, et al. \"Third-Party Library Dependency for Large-Scale SCA in the C/C++ Ecosystem: How Far Are We?.\" Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis. 2023.\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "BinaryAI-SDK is a library provides an abstracted client module to simplify the procedure of uploading file for analysis.",
"version": "0.8.4",
"project_urls": {
"Documentation": "https://www.binaryai.cn/doc/",
"Homepage": "https://www.binaryai.cn/",
"Repository": "https://github.com/binaryai/sdk/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "158a6df448ee864a7f1426b805046a7db2cc1041a1420e58b218b728befc8aff",
"md5": "8f4771dcc8170ce96735818c271e5bdf",
"sha256": "f0492571f69cf0f434ecdb7e6d74996cfd43e2e3f31d27cd7f4df057442d862c"
},
"downloads": -1,
"filename": "binaryai-0.8.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8f4771dcc8170ce96735818c271e5bdf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 51298,
"upload_time": "2025-06-24T13:16:12",
"upload_time_iso_8601": "2025-06-24T13:16:12.271178Z",
"url": "https://files.pythonhosted.org/packages/15/8a/6df448ee864a7f1426b805046a7db2cc1041a1420e58b218b728befc8aff/binaryai-0.8.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b95ca623cf3e1a8c133ee3ed6c023ec70aa9b777bea06133b62bffd47569a9b9",
"md5": "fcb647978f70fed41d99013e3032f7b5",
"sha256": "401d7f8659e51c4f43af91858bdcd285e6f7fd40b8e54339dbdfec49b320e8ed"
},
"downloads": -1,
"filename": "binaryai-0.8.4.tar.gz",
"has_sig": false,
"md5_digest": "fcb647978f70fed41d99013e3032f7b5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 39237,
"upload_time": "2025-06-24T13:16:13",
"upload_time_iso_8601": "2025-06-24T13:16:13.378280Z",
"url": "https://files.pythonhosted.org/packages/b9/5c/a623cf3e1a8c133ee3ed6c023ec70aa9b777bea06133b62bffd47569a9b9/binaryai-0.8.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-06-24 13:16:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "binaryai",
"github_project": "sdk",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "binaryai"
}