Saravanan666/pypi-org huggingface dataset:
Package: d8analysis
d8analysis - An Exploratory Data Analysis FrameworkDocumentation:https://john-james-ai.github.io/d8analysisSource Code:https://github.com/john-james-ai/d8analysisPyPI:https://pypi.org/project/d8analysis/Exploratory Data Analysis FrameworkInstallationpipinstalld8analysisDevelopmentClone this repositoryRequirements:PoetryPython 3.7+Create a virtual environment and install the dependenciespoetryinstallActivate the virtual environmentpoetryshellTestingpytestDocumentationThe documentation is automatically generated from the content of thedocs directoryand from the docstrings
of the public signatures of the source code. The documentation is updated and published as aGithub project pageautomatically as part each release.ReleasingTrigger theDraft release workflow(pressRun workflow). This will update the changelog & version and create a GitHub release which is inDraftstate.Find the draft release from theGitHub releasesand publish it. When
a release is published, it'll triggerreleaseworkflow which creates PyPI
release and deploys updated documentation.Pre-commitPre-commit hooks run all the auto-formatters (e.g.black,isort), linters (e.g.mypy,flake8), and other quality
checks to make sure the changeset is in good shape before a commit/push happens.You can install the hooks with (runs for each commit):pre-commitinstallOr if you want them to run only for each push:pre-commitinstall-tpre-pushOr if you want e.g. want to run all checks manually for all files:pre-commitrun--all-files
Package: d8s-algorithms
Democritus Algorithms (a.k.a. d8s-algorithms)Democritus functions[1]for working with algorithms.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-algorithmsUsageYou import the library like:fromd8s_algorithmsimport*Once imported, you can use any of the functions listed below.Functionsdefamb(validation_function:Callable[...,bool],*args:Any)->Iterable[Any]:"""."""defdepth_first_traverse(data:Any,get_children_function:Callable[[Any],Optional[Iterable]],*,collect_items_function:Optional[Callable[[Any],Any]]=None)->Iterable[Any]:"""Traverse the data in a depth-first manner.The get_children_function specifies how children will be identified from each node of the data.The collect_items_function, if provided, allows you to collect items from the data by...returning them from the collect_items_function."""defbreadth_first_traverse(data:Any,get_children_function:Callable[[Any],Optional[Iterable]],*,collect_items_function:Optional[Callable[[Any],Any]]=None)->Iterable[Any]:"""Traverse the data in a breadth-first manner.The get_children_function specifies how children will be identified from each node of the data.The collect_items_function, if provided, allows you to collect items from the data by...returning them from the collect_items_function."""defgenetic_algorithm_run(data:Iterable[Any],scoring_function:Callable[[Any],Union[int,float]],selection_function:Callable[[Dict[Any,Union[int,float]]],Iterable[Any]],mutation_function:Callable[[Iterable[Any]],Iterable[Any]],max_epochs:int,)->Dict[Any,Union[int,float]]:"""."""defgenetic_algorithm_best_mutation_function(starting_values:Iterable[Any],generations:int,scoring_function:Callable[[Any],Union[int,float]],mutation_functions:List[Callable[[Any],Any]],):"""Find the best mutation function.The best function is the one which produces values from the starting values...that score the highest (as measured by the scoring_function) after generations."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-archives
Democritus Archives (a.k.a. d8s-archives)Democritus functions[1]for working with archives.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-archivesUsageYou import the library like:fromd8s_archivesimport*Once imported, you can use any of the functions listed below.Functionsdefarchive_create(file_path,output_path,*,archive_name=None):"""Archive the given file."""defarchive_read(file_path,*,archive_name=None,password=None)->Iterable[Tuple[str,str]]:"""Read file(s) from the archive. If archive_name is given, read only that file; otherwise, read all files."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-asns
Democritus AsnsDemocritus functions[1]for working with asns.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-asnsUsageYou import the library like:fromd8s_asnsimport*Once imported, you can use any of the functions listed below.Functionsdefasn_standardize(as_number:str)->Optional[str]:"""Standardize the ASN format."""defstandardize_asn_decorator(func):"""Standardize the first argument as an ASN."""defasn_announced_prefixes(as_number:str)->Iterable[str]:"""."""defasn_adjacent_asns(as_number:str)->Iterable[str]:"""."""defasns_find(text:str)->Iterable[str]:"""Parse ASNs from the given text."""defasns()->Iterable[Tuple[str,str]]:"""Get a list of ASNs from http://bgp.potaroo.net/as1221/asnames.txt."""defasn_number(as_number:str)->int:"""Get the number value of the given ASN."""defasn_is_private(as_number:str)->bool:"""Check if the given ASN is private."""defasns_private_numbers()->Iterable[int]:"""Return the reserved (private) ASN numbers.Data is collected from:https://www.iana.org/assignments/iana-as-numbers-special-registry/iana-as-numbers-special-registry.xhtmlThis function only returns the private ASN numbers.The `asns_private_ranges` function returns more information about the private ASN ranges."""defasns_private_ranges()->List[Dict[str,str]]:"""Return the reserved (private) ASN ranges.Data is collected from:https://www.iana.org/assignments/iana-as-numbers-special-registry/iana-as-numbers-special-registry.xhtml"""defasn_name(as_number:str)->Optional[str]:"""Get the name of the given asn."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-csv
Democritus CSVDemocritus functions[1]for working with CSV, TSV, and other ____ Separated Values.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-csvUsageYou import the library like:fromd8s_csvimport*Once imported, you can use any of the functions listed below.Functionsdefcsv_read_as_list(csv_data:str,**kwargs):"""Read the csv_data as a list."""defcsv_read_as_dict(csv_data:str,**kwargs):"""Read the csv_data as a dict."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-domains
Democritus DomainsDemocritus functions[1]for working with domains.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-domainsUsageYou import the library like:fromd8s_domainsimport*Once imported, you can use any of the functions listed below.Functionsdefis_domain(possible_domain:str)->bool:"""Check if the given string is a domain."""defdomain_examples(n:int=10)->List[str]:"""Create n domain names."""defdomains_find(text:str,**kwargs:bool)->List[str]:"""Parse domain names from the given text."""defdomain_dns(domain:str)->str:"""Get the DNS results for the given domain."""defdomain_certificate_peers(domain:str)->List[str]:"""Return a list of all domains sharing a certificate with the given domain."""defdomain_whois(domain:str)->Optional[Dict[str,Any]]:"""."""defdomain_subdomains(domain_name:str)->str:"""Get the subdomains for the given domain name."""defdomain_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)."""defdomain_tld(domain_name:str)->str:"""Get the top level domain for the given domain name."""defdomain_rank(domain_name:str)->int:"""."""defdomain_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."""defdomain_as_punycode(domain_name:str)->str:"""Convert the given domain name to Punycode (https://en.wikipedia.org/wiki/Punycode)."""defdomain_as_unicode(domain_name:str)->str:"""Convert a given domain name to Unicode (https://en.wikipedia.org/wiki/Unicode)."""deftlds()->List[str]:"""Get the top level domains from https://iana.org/."""defis_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:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-emails
Democritus EmailsDemocritus functions[1]for working with emails.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-emailsUsageYou import the library like:fromd8s_emailsimport*Once imported, you can use any of the functions listed below.Functionsdefis_email(possible_email_text:str)->bool:"""Determine if the given string is an email."""defemail_header_date_fix(email_text:str):"""Fix the `Date` header in the given email email_text."""defemail_read(email_string:str):"""."""defemail_object_new():"""."""defemail_content_transfer_encoding(email_text):"""Get the content-transfer-encoding for the email (see https://www.w3.org/Protocols/rfc1341/5_Content-Transfer-Encoding.html)."""defemail_bodies_as_strings(email_text):"""Return the bodies (as strings) for the given email."""defemail_bodies_as_objects(email_text):"""Return the bodies (as objects) for the given email."""defemail_attachments(email_text):"""Return the attachments (as strings) for the given email."""defemail_attachments_objects(email_text):"""Return the attachments (as objects) for the given email."""defemail_body_is_base64(email_text):"""Determine if the body of the email is encoded using base64."""defemail_header_fields(email_text):"""Get the header fields in the email."""defemail_headers(email_text):"""Get the values of the header fields in the email."""defemail_headers_raw(email_text):"""Get the raw (undecoded) values of the header fields in the email."""defemail_headers_as_dict(email_text)->Dict[str,List[str]]:"""Return email's header fields as a dictionary with the header field key as the dictionary's key and the header field value as the dictionary's value."""defemail_header(email_text,header_field):"""Get the value(s) for the given header fields."""defemail_header_delete_field(email_text,header_field):"""Delete the header_field from the email_text."""defemail_structure(email_text):"""Get the structure of the email (this function was inspired by the function here: https://github.com/python/cpython/blob/4993cc0a5b34dc91da2b41c50e33d809f0191355/Lib/email/iterators.py#L59 - which is described here: https://docs.python.org/3.5/library/email.iterators.html?highlight=_structure#email.iterators._structure)."""defemail_header_add_raw(email,header_name,header_value):"""Add a header to the email."""defemail_header_add(email,header_name,header_value):"""Add a header to the email."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-fun
Democritus FunFun Democritus functions[1].[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-funUsageYou import the library like:fromd8s_funimport*Once imported, you can use any of the functions listed below.Functionsdefspinner(cycles:int=10,*,frames_per_second:int=10)->None:"""Print a spinner."""defassumption_make():"""."""defpassword_create(*,length:int=15,character_set:str=PASSWORD_CHARACTER_SET)->str:"""Create a password of the given length using the given character_set."""defspin_until_done(func):"""Show a spinner until the function is done."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-grammars
Democritus GrammarsDemocritus functions[1]for working with grammars.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-grammarsUsageYou import the library like:fromd8s_grammarsimport*Once imported, you can use any of the functions listed below.Functionsdefpyparsing_parse_result_get_token_dict(parse_result:pyparsing.ParseResults):"""."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-hashes
Democritus HashesDemocritus functions[1]for working with hashes.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-hashesUsageYou import the library like:fromd8s_hashesimport*Once imported, you can use any of the functions listed below.Functionsdefssdeep(input_string:Union[str,bytes])->str:"""."""defssdeep_compare(ssdeep_1:str,ssdeep_2:str)->int:"""."""defmd5(input_string:Union[str,bytes])->str:"""."""defsha1(input_string:Union[str,bytes])->str:"""."""defsha256(input_string:Union[str,bytes])->str:"""."""defsha512(input_string:Union[str,bytes])->str:"""Return the sha512 hash of the string."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-html
Democritus HtmlDemocritus functions[1]for working with HTML.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-htmlUsageYou import the library like:fromd8s_htmlimport*Once imported, you can use any of the functions listed below.Functionsdefhtml_text(html_content:StringOrBeautifulSoupObject)->str:"""."""defhtml_unescape(html_content:StringOrBeautifulSoupObject)->str:"""."""defhtml_escape(html_content:StringOrBeautifulSoupObject)->str:"""."""defhtml_to_markdown(html_content:StringOrBeautifulSoupObject,**kwargs)->str:"""Convert the html string to markdown."""defhtml_find_comments(html_content:StringOrBeautifulSoupObject)->str:"""Get a list of all of the comments in the html strings."""defhtml_soupify(html_string:str,parser:str='html.parser')->bs4.BeautifulSoup:"""Return an instance of beautifulsoup with the html."""defhtml_remove_tags(html_content:StringOrBeautifulSoupObject)->bs4.BeautifulSoup:"""."""defhtml_remove_element(html_content:StringOrBeautifulSoupObject,element_tag:str)->bs4.BeautifulSoup:"""."""defhtml_find_css_path(html_content:StringOrBeautifulSoupObject,css_path:str)->ListOfBeautifulSoupTags:"""Find the given css_path in the html_content."""defhtml_elements_with_class(html_content:StringOrBeautifulSoupObject,html_element_class:str)->ListOfBeautifulSoupTags:"""Find all elements with the given class from the html string."""defhtml_elements_with_id(html_content:StringOrBeautifulSoupObject,html_element_id:str)->ListOfBeautifulSoupTags:"""Find all elements with the given html_element_id from the html_content."""defhtml_elements_with_tag(html_content:StringOrBeautifulSoupObject,tag:str)->ListOfBeautifulSoupTags:"""."""defhtml_headings_table_of_contents(html_content:StringOrBeautifulSoupObject)->ListOfBeautifulSoupTags:"""."""defhtml_headings_table_of_contents_string(html_content:StringOrBeautifulSoupObject,*,indentation:str='  ')->str:"""."""defhtml_headings(html_content:StringOrBeautifulSoupObject)->ListOfBeautifulSoupTags:"""."""defhtml_to_json(html_content:StringOrBeautifulSoupObject,*,convert_only_tables:bool=False):"""Convert the html to json using https://gitlab.com/fhightower/html-to-json."""defhtml_soupify_first_arg_string(func):"""Return a Beautiful Soup instance of the first argument (if it is a string)."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-hypothesis
Democritus HypothesisDemocritus functions[1]for working withHypothesis.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-hypothesisUsageYou import the library like:fromd8s_hypothesisimport*Once imported, you can use any of the functions listed below.Functionsdefhypothesis_get_strategy_results(strategy,*args,n:int=10,**kwargs):"""Return the given n of results from the given hypothesis strategy.For a list of hypothesis strategies, see: https://hypothesis.readthedocs.io/en/latest/data.html."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-json
Democritus JSONDemocritus functions[1]for working with JSON.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8s(pronounced "dee-eights") as an abbreviation fordemocritus(you can read more about thishere).Installationpip install d8s-jsonUsageYou import the library like:fromd8s_jsonimport*Once imported, you can use any of the functions listed below.Functionsdefjson_files(directory_path:str)->List[str]:"""Find all json files in the given directory_path."""defjson_read(json_string:str):"""."""defjson_read_first_arg_string_decorator(func):"""Load the first argument as JSON (if it is a string)."""defjson_write(file_path,json_content,**kwargs):"""Write the json_content to the file_path."""defjson_prettify(json_object):"""."""defjson_pretty_print(json_string):"""Pretty print the json so it is readable."""defjson_search(json_data,value_to_find):"""Find the value_to_find in the json_data."""defjson_structure(json_data):"""Print out the structure of the given json blob."""defjson_path_dot_notation_to_bracket_notation(json_path_dot_notation:str)->str:"""Convert the given json path from dot notation to bracket notation (foo.bar -> ["foo"]["bar"])."""defjson_path_bracket_notation_to_dot_notation(json_path_dot_notation:str)->str:"""Convert the given json path from bracket notation to dot notation (["foo"]["bar"] -> foo.bar)."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.
Package: d8s-mpeg
Democritus MpegDemocritus functions[1]for working with mpegs.[1] Democritus functions aresimple, effective, modular, well-tested, and well-documentedPython functions.We used8sas an abbreviation fordemocritus(you can read more about thishere).Functionsdefmp4_download(url:str)->Iterable[bytes]:"""."""defmp3_download(url:str)->Iterable[bytes]:"""."""Development👋  If you want to get involved in this project, we have some short, helpful guides below:contribute to this project 🥇test it 🧪lint it 🧹explore it 🔭If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.CreditsThis package was created withCookiecutterand Floyd Hightower'sPython project template.