Code Monkey home page Code Monkey logo

d8s-domains's Introduction

Democritus Domains

PyPI CI Lint codecov The Democritus Project uses semver version 2.0.0 The Democritus Project uses black to format code License: LGPL v3

Democritus functions[1] for working with domains.

[1] Democritus functions are simple, effective, modular, well-tested, and well-documented Python functions.

We use d8s (pronounced "dee-eights") as an abbreviation for democritus (you can read more about this here).

Installation

pip install d8s-domains

Usage

You import the library like:

from d8s_domains import *

Once imported, you can use any of the functions listed below.

Functions

  • def is_domain(possible_domain: str) -> bool:
        """Check if the given string is a domain."""
  • def domain_examples(n: int = 10) -> List[str]:
        """Create n domain names."""
  • def domains_find(text: str, **kwargs: bool) -> List[str]:
        """Parse domain names from the given text."""
  • def domain_dns(domain: str) -> str:
        """Get the DNS results for the given domain."""
  • def domain_certificate_peers(domain: str) -> List[str]:
        """Return a list of all domains sharing a certificate with the given domain."""
  • def domain_whois(domain: str) -> Optional[Dict[str, Any]]:
        """."""
  • def domain_subdomains(domain_name: str) -> str:
        """Get the subdomains for the given domain name."""
  • def domain_second_level_name(domain_name: str) -> str:
        """Get the second level name for the given domain name (e.g. google from https://google.co.uk)."""
  • def domain_tld(domain_name: str) -> str:
        """Get the top level domain for the given domain name."""
  • def domain_rank(domain_name: str) -> int:
        """."""
  • def domain_is_member(domain_to_check: str, domain_base: str) -> bool:
        """Given two domains, check if the first domain is a member of the second domain.
    A member means it is either the domain itself, or a subdomain of the domain."""
  • def domain_as_punycode(domain_name: str) -> str:
        """Convert the given domain name to Punycode (https://en.wikipedia.org/wiki/Punycode)."""
  • def domain_as_unicode(domain_name: str) -> str:
        """Convert a given domain name to Unicode (https://en.wikipedia.org/wiki/Unicode)."""
  • def tlds() -> List[str]:
        """Get the top level domains from https://iana.org/."""
  • def is_tld(possible_tld: str) -> bool:
        """Return whether or not the possible_tld is a valid tld."""

Development

๐Ÿ‘‹ ย If you want to get involved in this project, we have some short, helpful guides below:

If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.

Credits

This package was created with Cookiecutter and Floyd Hightower's Python project template.

d8s-domains's People

Contributors

fhightower avatar wesinator avatar

Watchers

 avatar  avatar

d8s-domains's Issues

code execution backdoor

We discovered a potential code execution backdoor in version 0.1.0 of the project, the backdoor is the democritus-networking package. Attackers can upload democritus-networking packages containing arbitrary malicious code. For the safety of this project, the democritus-networking package has been uploaded by us.

image

The democritus-networking package can be successfully installed using pip install d8s-domains==0.1.0

image

Suggestion: remove version 0.1.0 of this project in PyPI

code execution backdoor

We discovered a potential code execution backdoor in version 0.1.0 of the project, the backdoor is the democritus-urls package. Attackers can upload democritus-urls packages containing arbitrary malicious code. For the safety of this project, the democritus-urls package has been uploaded by us.

image

The democritus-urls package can be successfully installed using pip install d8s-domains==0.1.0

image

Suggestion: remove version 0.1.0 of this project in PyPI

code execution backdoor

We discovered a potential code execution backdoor in version 0.1.0 of the project, the backdoor is the democritus-hypothesis package. Attackers can upload democritus-hypothesis packages containing arbitrary malicious code. For the safety of this project, the democritus-hypothesis package has been uploaded by us.

image

The democritus-hypothesis package can be successfully installed using pip install d8s-domains==0.1.0

image

Suggestion: remove version 0.1.0 of this project in PyPI

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.