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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cyclic-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cyclic-1.0.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file cyclic-1.0.0.tar.gz.

File metadata

  • Download URL: cyclic-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cyclic-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ecddd56cb831ee3e6b79f61ecb0ad71caee606c507136867782911aa01c3e5eb
MD5 7fb4ec577a78c75f0ad44a92fe184cfc
BLAKE2b-256 bf9fbecc4fea44301f232e4eba17752001bd708e3c042fef37a72b9af7ddf4b5

See more details on using hashes here.

File details

Details for the file cyclic-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cyclic-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cyclic-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32d8181d7698f426bce6f14f4c3921ef95b6a84af9f96192b59beb05bc00c3ed
MD5 0c983fa388bdc05760953554236671e0
BLAKE2b-256 c0c09f59d2ebd9d585e1681c51767eb138bcd9d0ea770f6fc003cd875c7f5e62

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page