Package Search Help

You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.

Search by package name:
my-package (implicit)
name:my-package (explicit)

Search by package filename:
filename:my-package.ext 

Search by package tag:
tag:latest 

Search by package version:
version:1.0.0  prerelease:true (prereleases)
prerelease:false (no prereleases)

Search by package architecture:
architecture:x86_64 

Search by package distribution:
distribution:el 

Search by package license:
license:MIT 

Search by package format:
format:deb 

Search by package status:
status:in_progress 

Search by package file checksum:
checksum:5afba 

Search by package security status:
severity:critical 

Search by package vulnerabilities:
vulnerabilities:>1 
vulnerabilities:<1000 

Search by # of package downloads:
downloads:>8 
downloads:<100 

Search by package type:
type:binary 
type:source 

Search by package size (bytes):
size:>50000 
size:<10000 

Search by dependency name/version:
dependency:log4j 
dependency:log4j=1.0.0 
dependency:log4j>1.0.0 

Search by uploaded date:
uploaded:>"1 day ago" 
uploaded:<"August 14, 2022 EST" 

Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY 

Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true

Search by repository:
repository:repo-name

Search by last download date:
last_downloaded:<"30 days ago" 
last_downloaded:>"August 14, 2022 EST" 

Search queries for all Debian-specific (and related) package types

Search by component:
deb_component:unstable

Search queries for all Maven-specific (and related) package types

Search by group ID:
maven_group_id:org.apache

Search queries for all Docker-specific (and related) package types

Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)

Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)

Search queries for all Generic-specific package types

Search by file path:
generic_filepath:path/to/file.txt

Search by directory:
generic_directory:path/to

Field type modifiers (depending on the type, you can influence behaviour)

For all queries, you can use:
~foo for negation

For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching

For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal

Need a secure and centralised artifact repository to deliver Alpine, Cargo, CocoaPods, Composer, Conan, Conda, CRAN, Dart, Debian, Docker, Generic, Go, Helm, Hex, HuggingFace, LuaRocks, Maven, npm, NuGet, P2, Python, RedHat, Ruby, Swift, Terraform, Vagrant, VSX, Raw & More packages?

Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.

With support for all major package formats, you can trust us to manage your software supply chain.

Start My Free Trial

Python logo brainly-api  0.1.1

One-liner (summary)

The ultimate HTTP library designed to communicate with the Brainly APIs

Description

# Brainly API Client

[![PyPI](https://img.shields.io/pypi/v/brainly-api.svg)](https://pypi.python.org/pypi/brainly-api)

The ultimate Python library to access the [Brainly REST API](https://brainly.com/api/28) and [Brainly GraphQL API](https://brainly.com/graphql/us)

All Brainly markets supported. Async by default.

## Install

`bash pip install brainly-api `

## Usage

```python from brainly_api import BrainlyAPI

api = BrainlyAPI(
token="XXXXXX", # token long market="dd", legacy_api_host="http://ru.data.api.z-dn.net", graphql_api_host="https://graphql.z-dn.net"

)

# ...

user = await api.get_user(34) print(user) ```

## Notes

This is not an official API wrapper affiliated with Brainly.

The Brainly API is undocumented, so this library only contains well-known publicly accessible API endpoints.

### I'm getting blocked by Brainly

Brainly is blocking automated requests.

This library uses plain HTTP requests with no anti-blocking strategy, so if you're trying to access publicly known Brainly hosts (e.g., https://brainly.com/api/28), you may be getting blocked.

If you want unblocked access to Brainly APIs, please [contact me](https://t.me/vlaex)

Size

11.0 KB

Downloads

4

Status  Completed
Checksum (MD5) 0c8d015ff8dfc78e52dad750bad8477f
Checksum (SHA-1) 1b71b48f15c89012a53bd1a4f7542724996aefd3
Checksum (SHA-256) 7c6f8b886ac661271cff206cb4cb5867a09b3cfa726a6c816bac49a40e971b6d
Checksum (SHA-512) dcd1ac387a1c4599834d3a148fe6cb058a44f7d201f0418af92745192ea3ef30ac…
GPG Signature
GPG Fingerprint 6811684bac0b8895434e97bdd4391b8fb999e537
Storage Region  Dublin, Ireland
Type  Binary (contains binaries and binary artifacts)
Uploaded At 4 months, 3 weeks ago
Uploaded By Fetched by Cloudsmith
Slug Id brainly_api-011-py3-none-anywhl-evli
Unique Id ZdiNx4kdEBTFQHnE
Version (Raw) 0.1.1
Version (Parsed)
  • Major: 0
  • Minor: 1
  • Patch: 1
  • Type: SemVer (Compat)
  extended metadata
Classifiers Development Status :: 1 - Planning | Environment :: Web Environment | Intended Audience :: Developers | License :: OSI Approved :: MIT License | Operating System :: OS Independent | Programming Language :: Python :: 3 | Programming Language :: Python :: 3.11 | Programming Language :: Python :: 3.12 | Topic :: Software Development :: Libraries :: Python Modules
Homepage URL https://github.com/vlaex/brainly-api-python
Keywords api,brainly,brainly api,znanija,nosdevoirs,brainly.com,znanija.com
Metadata Version 2.1
Project Urls Repository, https://github.com/vlaex/brainly-api-python
Py Filetype bdist_wheel
Py Version py3
Requires Dist httpx[http2] (>=0.27.0,<0.28.0)
Requires Python >=3.11,<4.0
pkg brainly_api-0.1.1-py3-none-any.… 4
11.0 KB
md5 sha1 sha256 sha512
Package Contents (brainly_api-0.1.1-py3-none-any.whl)
Loading...

This package has 29 files/directories.

Last scanned

4 months, 3 weeks ago

Scan result

Clean

Vulnerability count

0

Max. severity

Unknown

You can embed a badge in another website that shows this or the latest version of this package.

To embed the badge for this specific package version, use the following:

[![This version of 'brainly-api' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/)
|This version of 'brainly-api' @ Cloudsmith|
.. |This version of 'brainly-api' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/",title="This version of 'brainly-api' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/0.1.1/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true" alt="This version of 'brainly-api' @ Cloudsmith" /></a>

rendered as: This version of 'brainly-api' @ Cloudsmith

To embed the badge for the latest package version, use the following:

[![Latest version of 'brainly-api' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true&show_latest=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/)
|Latest version of 'brainly-api' @ Cloudsmith|
.. |Latest version of 'brainly-api' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true&show_latest=true
   :target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/",title="Latest version of 'brainly-api' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainly-api/latest/a=noarch;xf=bdist_wheel;xn=brainly-api;xv=py3/?render=true&show_latest=true" alt="Latest version of 'brainly-api' @ Cloudsmith" /></a>

rendered as: Latest version of 'brainly-api' @ Cloudsmith

These instructions assume you have setup the repository first (or read it).

To install/use brainly-api @ version 0.1.1 ...

pip install 'brainly-api==0.1.1'

You can also install the latest version of this package:

pip install --upgrade 'brainly-api'

If necessary, you can specify the repository directly:

pip install \
  --index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
  brainly-api==0.1.1

If you've got a project requirements.txt file, you can specify this as a dependency:

--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
brainly-api==0.1.1

In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:

--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
brainly-api==0.1.1
Warning: We highly recommend using pip (or similar) rather than installing directly.
Top