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:
my-package.ext
(implicit)
filename:my-package.ext
(explicit)
Search by package tag:
latest
(implicit)
tag:latest
(explicit)
Search by package version:
1.0.0
(implicit)
version:1.0.0
(explicit)
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 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)
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,
Go,
Helm,
Hex,
LuaRocks,
Maven,
npm,
NuGet,
P2,
Python,
RedHat,
Ruby,
Swift,
Terraform,
Vagrant,
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.
yarl 1.3.0
One-liner (summary)
Description
yarl
Introduction
Url is constructed from str:
>>> from yarl import URL >>> url = URL('https://www.python.org/~guido?arg=1#frag') >>> url URL('https://www.python.org/~guido?arg=1#frag')
All url parts: scheme, user, password, host, port, path, query and fragment are accessible by properties:
>>> url.scheme 'https' >>> url.host 'www.python.org' >>> url.path '/~guido' >>> url.query_string 'arg=1' >>> url.query <MultiDictProxy('arg': '1')> >>> url.fragment 'frag'
All url manipulations produce a new url object:
>>> url.parent / 'downloads/source' URL('https://www.python.org/downloads/source')
Strings passed to constructor and modification methods are automatically encoded giving canonical representation as result:
>>> url = URL('https://www.python.org/путь') >>> url URL('https://www.python.org/%D0%BF%D1%83%D1%82%D1%8C')
Regular properties are percent-decoded, use raw_ versions for getting encoded strings:
>>> url.path '/путь' >>> url.raw_path '/%D0%BF%D1%83%D1%82%D1%8C'
Human readable representation of URL is available as .human_repr():
>>> url.human_repr() 'https://www.python.org/путь'
For full documentation please read https://yarl.readthedocs.org.
Installation
$ pip install yarl
The library is Python 3 only!
Dependencies
YARL requires multidict library.
API documentation
The documentation is located at https://yarl.readthedocs.org
Comparison with other URL libraries
furl (https://pypi.python.org/pypi/furl)
The library has rich functionality but the furl object is mutable.
I'm afraid to pass this object into foreign code: who knows if the code will modify my url in a terrible way while I just want to send URL with handy helpers for accessing URL properties.
furl has other non-obvious tricky things but the main objection is mutability.
URLObject (https://pypi.python.org/pypi/URLObject)
URLObject is immutable, that's pretty good.
Every URL change generates a new URL object.
But the library doesn't do any decode/encode transformations leaving the end user to cope with these gory details.
Source code
The project is hosted on GitHub
Please file an issue on the bug tracker if you have found a bug or have some suggestion in order to improve the library.
The library uses Travis for Continuous Integration.
Discussion list
aio-libs google group: https://groups.google.com/forum/#!forum/aio-libs
Feel free to post your questions and ideas here.
Authors and License
The yarl package is written by Andrew Svetlov.
It's Apache 2 licensed and freely available.
CHANGES
1.3.0 (2018-12-11)
- Fix annotations for query parameter (#207)
- An incoming query sequence can have int variables (the same as for Mapping type) (#208)
- Add URL.explicit_port property (#218)
- Give a friendlier error when port cant be converted to int (#168)
- bool(URL()) now returns False (#272)
1.2.6 (2018
Status | Completed |
---|---|
Checksum (MD5) | c030ae881c1555b8865d2704264784f2 |
Checksum (SHA-1) | 8969f306e60bc1523714558c737593d0ee1b7829 |
Checksum (SHA-256) | 784aac00a2500c24e930401ebe3858f6db581034515bdcf924a9f4f94b5c5cf1 |
Checksum (SHA-512) | a025c7711d71cb4ebd9b7734708ac5ca293034ffb54eceae2c14548aef30064aca… |
GPG Signature | |
Storage Region | Dublin, Ireland |
Type | Binary (contains binaries and binary artifacts) |
Uploaded At | 5 years, 9 months ago |
Uploaded By | |
Slug Id | yarl-130-cp36-cp36m-linux_armv7lwhl |
Unique Id | uF4pm8TlH8AL |
Version (Raw) | 1.3.0 |
Version (Parsed) |
|
extended metadata | |
Abi | cp36m |
Author | Andrew Svetlov <andrew.svetlov@gmail.com> |
Classifiers | Intended Audience :: Developers | License :: OSI Approved :: Apache Software License | Programming Language :: Python | Programming Language :: Python :: 3 | Programming Language :: Python :: 3.5 | Programming Language :: Python :: 3.6 | Topic :: Internet :: WWW/HTTP |
Homepage URL | https://github.com/aio-libs/yarl/ |
Metadata Version | 2.1 |
Py Filetype | bdist_wheel |
Py Version | cp36 |
pkg | yarl-1.3.0-cp36-cp36m-linux_arm… |
89
222.7 KB |
md5 | sha1 | sha256 | sha512 |
This package has 15 files/directories.
yarl |
89 |
Security Scanning:
You can't see this because your subscription doesn't include this feature, sorry!
With Security Scanning, Cloudsmith will scan your artifacts for vulnerabilities when they're uploaded. These are then presented to you via the UI and the API, so that you can build rules into your CI/CD pipelines to decide how to handle low, medium, high and critical software vulnerabilities.
If you'd like to trial or ask about the Security Scanning feature, just ask us. We'll be happy to help!
Last scanned
3 days, 23 hours ago
Scan result
Clean
Vulnerability count
0
Max. severity
HighYou 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 'yarl' @ Cloudsmith](https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true)](https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/)
|This version of 'yarl' @ Cloudsmith|
.. |This version of 'yarl' @ Cloudsmith| image:: https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true
:target: https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/
image::https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true[link="https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/",title="This version of 'yarl' @ Cloudsmith"]
<a href="https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/"><img src="https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/1.3.0/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true" alt="This version of 'yarl' @ Cloudsmith" /></a>
rendered as:
To embed the badge for the latest package version, use the following:
[![Latest version of 'yarl' @ Cloudsmith](https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true&show_latest=true)](https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/)
|Latest version of 'yarl' @ Cloudsmith|
.. |Latest version of 'yarl' @ Cloudsmith| image:: https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true&show_latest=true
:target: https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/
image::https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true&show_latest=true[link="https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/",title="Latest version of 'yarl' @ Cloudsmith"]
<a href="https://cloudsmith.io/~agriconnect/repos/python/packages/detail/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/"><img src="https://api-prd.cloudsmith.io/v1/badges/version/agriconnect/python/python/yarl/latest/a=linux_armv7l;xa=cp36m;xf=bdist_wheel;xn=yarl;xv=cp36/?render=true&show_latest=true" alt="Latest version of 'yarl' @ Cloudsmith" /></a>
rendered as:
These instructions assume you have setup the repository first (or read it).
To install/use yarl @ version 1.3.0 ...
pip install 'yarl==1.3.0'
You can also install the latest version of this package:
pip install --upgrade 'yarl'
If necessary, you can specify the repository directly:
pip install \
--index-url=https://dl.cloudsmith.io/public/agriconnect/python/python/simple/ \
yarl==1.3.0
If you've got a project requirements.txt file, you can specify this as a dependency:
--index-url=https://dl.cloudsmith.io/public/agriconnect/python/python/simple/
yarl==1.3.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/agriconnect/python/python/simple/
yarl==1.3.0