Skip to main content

Build Status

Handle cyclic relation compared by value.

Install

Install from Pypi:

pip install cyclic

Usage

from cyclic import Cyclic

cy = Cyclic()

# Let's say A is a prent of B
cy.add(B, A)

# B is a parent of C
cy.add(C, B)

# C is a parent of A (cyclic)
cy.add(A, C)

# let's see if C is in any kind of cyclic relation

print(cy.is_cyclic(C)) # True

Release files for cyclic 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cyclic 1.0.0
File Size Uploaded
cyclic-1.0.0.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cyclic 1.0.0
File Interpreter ABI Platform
cyclic-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 kB

Release files / cyclic-1.0.0.tar.gz

Download URL cyclic-1.0.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ecddd56cb831ee3e6b79f61ecb0ad71caee606c507136867782911aa01c3e5eb
BLAKE2b-256 checksum
How to use checksums
bf9fbecc4fea44301f232e4eba17752001bd708e3c042fef37a72b9af7ddf4b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release files / cyclic-1.0.0-py3-none-any.whl

Download URL cyclic-1.0.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32d8181d7698f426bce6f14f4c3921ef95b6a84af9f96192b59beb05bc00c3ed
BLAKE2b-256 checksum
How to use checksums
c0c09f59d2ebd9d585e1681c51767eb138bcd9d0ea770f6fc003cd875c7f5e62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page