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.
brainlift
0.1.0
One-liner (summary)
Description
# BrainLift CLI
A command-line interface for the BrainLift knowledge management system. This CLI tool allows you to interact with the BrainLift serverless backend to manage, search, and generate structured knowledge content.
## Installation
`bash # Install from source pip install -e . `
### Environment Setup
Create a .env file in your home directory at ~/.brain-lift/.env with the following variables:
`bash BRAINLIFT_FUNCTION_URL=your_lambda_function_url BRAINLIFT_API_KEY=your_api_key `
Alternatively, you can use the configure-serverless command to set these values:
`bash blm configure-serverless --function-url https://your-lambda-function-url.lambda-url.region.on.aws/ --api-key your-api-key `
## Commands
### List Content
```bash # List all products blm list
# List topics in a product blm list --product <product>
# List sections in a topic blm list --product <product> --topic <topic> ```
### Search Content
```bash # Search for content blm search "your search query"
# Search within a specific product blm search "your search query" --product <product>
# Limit search results blm search "your search query" --limit 5 ```
### Get Content
```bash # Get content by path blm get --product <product> --topic <topic>
# Get specific section blm get --product <product> --topic <topic> --section <section> ```
### Import Content
`bash # Import content from a markdown file blm import <file.md> --product <product> --topic <topic> `
### Update Content
`bash # Update content blm update --product <product> --topic <topic> --file <file.md> `
### Delete Content
`bash # Delete content blm delete --product <product> --topic <topic> `
### Generate Content
```bash # Generate structured content from raw input blm generate --product <product> --topic <topic> --file <file.md>
# Specify template version blm generate --product <product> --topic <topic> --file <file.md> -v v3 ```
### Content Generation Guidelines
When using the generate command, the system follows these principles:
- Factual Accuracy: The system prioritizes factual accuracy over filling every template section. All content must be derived from the source material.
- DOK Structure: - DOK1 and DOK2: Function as context packs containing factual information and foundational knowledge directly from the source material. - DOK3 and DOK4: Higher-level insights are only included when they can be genuinely derived from the content, not invented.
- Experts Section: Only includes people or sources that are explicitly mentioned in the original content. If no experts are explicitly mentioned, this section should remain empty or be omitted.
- Purpose Section: Clearly defines what the content is about - the core objective or focus of the material.
- Template Flexibility: The template structure respects what's actually in the content rather than forcing information into categories where it doesn't exist in the source material.
## Verbose Mode
Add the --verbose flag to get more detailed output:
`bash blm --verbose INFO list blm --verbose DEBUG generate --product <product> --topic <topic> --file <file.md> `
## Development
This CLI is a thin wrapper around the BrainLift serverless backend. It handles:
- Command-line argument parsing
- File I/O for content import/export
- API calls to the serverless backend
- Formatting and displaying results
All business logic, content processing, and storage operations are handled by the serverless backend.
License
Size
13.3 KB
Downloads
4
Tags
bdist/wheel whl noarch py3 upstream python-upstream-pro… latest
| Status | Completed |
|---|---|
| Checksum (MD5) | d0b4c900267bc9f2b2fa9e8d81e9d199 |
| Checksum (SHA-1) | 9cca06a960a06930aabaf381ad6220b0c85f7ba7 |
| Checksum (SHA-256) | 4721ccc5e46142e1d5d4a71e9a5dadb9167198963b6614d310d904b7e233442b |
| Checksum (SHA-512) | 384e80eaca169ce391d2fb21fad2cb5e250932e077972d883dcac4997f40f1e99f… |
| 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 |
|
| Slug Id | brainlift-010-py3-none-anywhl-lla5 |
| Unique Id | qr5nCiqcHqMQeCsb |
| Version (Raw) | 0.1.0 |
| Version (Parsed) |
|
| extended metadata | |
| Author | Trilogy Group <info@trilogy.com> |
| Classifiers | Development Status :: 4 - Beta | Intended Audience :: Developers | License :: OSI Approved :: MIT License | Programming Language :: Python :: 3 | Programming Language :: Python :: 3.10 | Programming Language :: Python :: 3.7 | Programming Language :: Python :: 3.8 | Programming Language :: Python :: 3.9 | Topic :: Software Development :: Libraries :: Python Modules | Topic :: Utilities |
| Homepage URL | https://github.com/trilogy-group/-brainlift-cli |
| Keywords | brainlift,knowledge management,cli,ai,vector search |
| Metadata Version | 2.4 |
| Py Filetype | bdist_wheel |
| Py Version | py3 |
| Requires Dist | python-dotenv>=0.15.0 | requests>=2.25.0 |
| Requires Python | >=3.7 |
| pkg | brainlift-0.1.0-py3-none-any.whl |
4
13.3 KB |
md5 | sha1 | sha256 | sha512 |
This package has 21 files/directories.
Last scanned
4 months, 3 weeks ago
Scan result
Clean
Vulnerability count
0
Max. severity
UnknownPackage statistics are no longer available on cloudsmith.io. Please visit our new web app to access this feature.
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:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/0.1.0/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/)
|This version of 'brainlift' @ Cloudsmith|
.. |This version of 'brainlift' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainlift/0.1.0/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/?render=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/0.1.0/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainlift/0.1.0/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/0.1.0/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/",title="This version of 'brainlift' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/0.1.0/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainlift/0.1.0/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/?render=true" alt="This version of 'brainlift' @ Cloudsmith" /></a>
rendered as:
To embed the badge for the latest package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/latest/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/)
|Latest version of 'brainlift' @ Cloudsmith|
.. |Latest version of 'brainlift' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainlift/latest/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/?render=true&show_latest=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/latest/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainlift/latest/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/latest/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/",title="Latest version of 'brainlift' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/brainlift/latest/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/brainlift/latest/a=noarch;xf=bdist_wheel;xn=brainlift;xv=py3/?render=true&show_latest=true" alt="Latest version of 'brainlift' @ Cloudsmith" /></a>
rendered as:
These instructions assume you have setup the repository first (or read it).
To install/use brainlift @ version 0.1.0 ...
pip install 'brainlift==0.1.0'
You can also install the latest version of this package:
pip install --upgrade 'brainlift'
If necessary, you can specify the repository directly:
pip install \
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
brainlift==0.1.0
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/
brainlift==0.1.0
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/
brainlift==0.1.0