Saravanan666/pypi-org huggingface dataset:
Package: owl-builder
Ontology Builder (owl-builder)Key Term Extractionfromowl_builderimportkeytermsinput_text="""A local area network (LAN) is a computer network that interconnects computers within a limited area such as a residence, school, laboratory, university campus or office building.By contrast, a wide area network (WAN) not only covers a larger geographic distance, but also generally involves leased telecommunication circuits.Ethernet and Wi-Fi are the two most common technologies in use for local area networks.Historical network technologies include ARCNET, Token Ring, and AppleTalk."""results=keyterms(input_text=input_text,use_openai=False,use_terms=True,use_keyterms=True,use_ngrams=False,use_nounchunks=False)The results are["leased telecommunication circuit","historical network technology","large geographic distance","interconnects computer","local area network","university campus","common technology","wide area network","computer network","office building","include arcnet","limited area","token ring"]Ifuse_openaiis set toTrue, then the following environment variables must be set:os.environ['USE_OPENAI']="True"os.environ['OPENAI_KEY']="<openai-key>"os.environ['OPENAI_ORG']="<openai-org>"TTL Generationfromowl_builderimportbuild_ttlresults=build_ttl("He has aims to make Detroit a leader in green energy.")The result is###http://graffl.ai/pathology#green_energy:green_energyrdf:typeowl:Class;rdfs:label"Green Energy";rdfs:subClassOf:energy.
###http://graffl.ai/pathology#energy:energyrdf:typeowl:Class;rdfs:label"Energy".You can also supply your own taxonomy like this:importpandasaspdresults=build_ttl(pd.DataFrame([{"Parent":"Alpha","Child":"Alpha Beta"},{"Parent":"Alpha Beta","Child":"Alpha Beta Gamma"},{"Parent":"Gamma","Child":"Gamma Delta"},]))The result is###http://graffl.ai/pathology#alpha_beta:alpha_betardf:typeowl:Class;rdfs:label"Alpha Beta";rdfs:subClassOf:alpha.
###http://graffl.ai/pathology#alpha:alphardf:typeowl:Class;rdfs:label"Alpha".
###http://graffl.ai/pathology#alpha_beta_gamma:alpha_beta_gammardf:typeowl:Class;rdfs:label"Alpha Beta Gamma";rdfs:subClassOf:alpha_beta.
###http://graffl.ai/pathology#alpha_beta:alpha_betardf:typeowl:Class;rdfs:label"Alpha Beta".
###http://graffl.ai/pathology#gamma_delta:gamma_deltardf:typeowl:Class;rdfs:label"Gamma Delta";rdfs:subClassOf:gamma.
###http://graffl.ai/pathology#gamma:gammardf:typeowl:Class;rdfs:label"Gamma".
Package: owlery
OwleryUniform messaging service supporting a variety of messaging services and vendors easily integrated with your Python
applications or usable from your command-line, allowing easy substitution and drop-in of services and vendors during
runtime, configuration, development cycle or application evolution - even sending different messages through different
vendors based on rules.LinksDocumentation:https://owlery-messaging.readthedocs.io/Changes:https://owlery-messaging.readthedocs.io/en/latest/changes.htmlReleases:https://pypi.org/project/owlery/Source Code:https://github.com/COUR4G3/owleryIssue Tracker:https://github.com/COUR4G3/owlery/issues
Package: owlfft
This package implements a simple GUI to calculate real positive Fourier transforms from data stored in a.csvfile, e.g., the recording data of an accelerometer. It aimts to be an educational resource for the structural dynamics course at theBarcelona School of Civil Engineering.InstallationOn the commandline, type the following command:pipinstallowlfftAfter that, you can call the package as a module from any location, likepython-mowlfftAlternatively, you can download the fileowlfft.pyinto a place of your choice and make sure all the dependencies are installed,pipinstallnumpyscipymatplotlibpyqt5superqtand then, run the python script:pythonowlfft.pyUsageThe above window will be opened. It allows to select a.csvfile and to specify how to read it (custom delimiter, columns where to read data, etc.). There are also two range sliders to trim the time and the frequency domains. Finally, a cursor is added to the FFT spectrum plot.Why an owl?Because the python project must be unique, because the author likes birds and because the name is short.ThanksThe author gratefully acknoledgeFlaticonfor the design of the icon.
Package: owlmixin
OwlMixin(ﾟ∀ﾟ) v5.0 have breaking changesTIterator#group_byReturnTDict[TList[T]]instead ofTDict[TIterator[T]](ﾟ∀ﾟ) v4.0 have breaking changesOwlMixinMust use keyword arguments infrom_XXXandto_XXXexcept for some onesfrom_csvf->from_csvf_to_listTListhead->takepartial->partition(switch left and right)transformers.XXXMust use keyword arguments into_dictto_dictsto_jsonto_jsonfto_yamlto_yamlfto_csvto_csvf💪 MotivationHave you ever wanted to write robust code in Python? This library will make such your wishes come true.Define your data class which is extend OwlMixin, you can use some useful methods which help your codes robust.
See followingExampleandAPI Referencesections.💃 Installationpipinstallowlmixin📜 API Referencehttps://tadashi-aikawa.github.io/owlmixin/👉 ExamplesfromowlmixinimportOwlMixin,OwlEnum,TOption,TListclassColor(OwlEnum):RED="red"GREEN="green"BLUE="blue"classFood(OwlMixin):id:intname:strcolor:TOption[Color]classHuman(OwlMixin):id:intname:strfavorite:TList[Food]jiro=Human.from_dict({"id":10,"name":"jiro","favorite":[{"id":1,"name":"apple"},{"id":2,"name":"orange","color":"green"}]})Then...>>> jiro.id
10
>>> jiro.name
'jiro'

>>> print(jiro.to_dict())
{'id': 10, 'name': 'jiro', 'favorite': [{'id': 1, 'name': 'apple'}, {'id': 2, 'name': 'orange', 'color': 'green'}]}

>>> print(jiro.favorite[0].to_pretty_json())
{
    "id": 1,
    "name": "apple"
}

>>> print(jiro.to_yaml())
favorite:
  - id: 1
    name: apple
  - color: green
    id: 2
    name: orange
id: 10
name: jiro

>>> print(jiro.favorite.to_csv(['id', 'name', 'color'], with_header=True))
id,name,color
1,apple,
2,orange,greenYou can also use methods chains as following.fromowlmixinimportOwlMixin,TOption,TIteratorclassRepository(OwlMixin):id:intname:strdescription:TOption[str]stargazers_count:intclassGithubRepository(OwlMixin):total_count:intincomplete_results:boolitems:TIterator[Repository]Then...>>>print(...GithubRepository....from_json_url("https://api.github.com/search/repositories?q=git")....items....filter(lambdax:x.stargazers_count>100)....order_by(lambdax:x.stargazers_count,True)....take(5)....emap(lambdav,i:{...'RANK':i+1,...'STAR':v.stargazers_count,...'NAME':v.name,...'DESCRIPTION':v.description...})....to_csv(fieldnames=["RANK","STAR","NAME","DESCRIPTION"],with_header=True)...)RANK,STAR,NAME,DESCRIPTION1,84643,gitignore,Acollectionofuseful.gitignoretemplates2,30456,gogs,Gogsisapainlessself-hostedGitservice.3,29908,git-flight-rules,Flightrulesforgit4,27704,git,GitSourceCodeMirror-Thisisapublish-onlyrepositoryandallpullrequestsareignored.PleasefollowDocumentation/SubmittingPatchesprocedureforanyofyourimprovements.5,15541,tips,Mostcommonlyusedgittipsandtricks.Don't you think smart?💻 For developersRequirementspoetrymakeFlowDevelopment on master and if you need branches and issues, create themCommit with prefix emoji such as "📝", and suffix issue number like "#120"Commands# Create env$makeinit-dev# Build documentation and run server locally$makeserve-docs# Test (Doc test & Unit test)$maketest📦 ReleaseRequirementspoetrymakeghrCommandsmakereleaseversion=x.y.z
Package: owl-on-fhir
OWL-on-FHIRA Python-based non-minimalistic OWL to FHIR converter.PrerequisitePython 3.9+Java 11+Installationpip install owl-on-fhirUsageSyntaxowl-on-fhir --input-path-or-url FILENAME --code-system-id ID --native-uri-stems "URL_1,...,URL_N" --code-system-url URL [NON_REQUIRED_OPTIONS]Examplesowl-on-fhir --input-path-or-url comploinc.owl --code-system-id comploinc --native-uri-stems "https://loinc.org/" --code-system-url https://github.com/loinc/comp-loinc/releases/latest/download/merged_reasoned_loinc.owlCLI optionsShort FlagLong FlagRequiredDescription-h--helpShow this help message and exit.-i--input-path-or-urlTrueURL or path to OWL file to convert.-s--code-system-idTrueThe code system ID to use for identification on the server uploaded to. See:https://hl7.org/fhir/resource-definitions.html#Resource.id-S--code-system-urlTrueCanonical URL for the code system. See:https://hl7.org/fhir/codesystem-definitions.html#CodeSystem.url-u--native-uri-stemsTrueA comma-separated list of URI stems that will be used to determine whether a concept is native to the CodeSystem. For example, for OMIM, the following URI stems are native:https://omim.org/entry/,https://omim.org/phenotypicSeries/PS". As of 2023-01-15, there is still a bug in the Obographs spec and/orrobotwhere certain nodes are not being converted. This converter adds back the nodes, but to know which ones belong to the CodeSystem itself and are not foreign concepts, this parameter is necessary. OAK also makes use of this parameter. See also:https://github.com/geneontology/obographs/issues/90-o--out-dirFalseThe directory where results should be saved.-n--out-filenameFalseFilename for the primary file converted, e.g. CodeSystem.-p--include-only-critical-predicatesFalseIf present, includes only critical predicates (is_a/parent) rather than all predicates in CodeSystem.property and CodeSystem.concept.property.-c--use-cached-intermediariesFalseUse cached intermediaries if they exist?-r--retain-intermediariesFalseRetain intermediary files created during conversion process (e.g. Obograph JSON)?-I--convert-intermediaries-onlyFalseConvert intermediaries only?-d--dev-oak-pathFalseIf you want to use a local development version of OAK, specify the path to the OAK directory here. Must be used with --dev-oak-interpreter-path.-D--dev-oak-interpreter-pathFalseIf you want to use a local development version of OAK, specify the path to the Python interpreter where its dependencies are installed (i.e. its virtual environment). Must be used with --dev-oak-path.MoreAlternative OWL to FHIR convertersFHIR-OWLhttps://github.com/aehrc/fhir-owlTakes a minimalistic approach. Can convert top-level CodeSystem properties, concepts, and also supports some predicates, such as synonyms. Uses Javaowl-api.Ontology Access Kit (OAK)https://github.com/INCATools/ontology-access-kit/OWL-on-FHIR is largely a wrapper aroundOntology Access Kit(OAK)'s FHIR converter. It adds some extra automation such as an intermediary conversion to Obographs JSON, which is currently a required input for OAK for most ontologies, given the current state of development.
Package: owl-parser
Ontology Parser (owl-parser)Use an Ontology model to parse unstructured textUnder the hoodThis is the root level method.The input parameters and return values have well-described data types.defowl_parser(tokens:list,ontology_name:str,absolute_path:str)->list:Enforcer.is_list_of_dicts(tokens)Enforcer.is_str(ontology_name)FileIO.exists_or_error(absolute_path)fromowl_finder.multiquery.bpimportFindOntologyDatafromowl_parser.bpimportMutatoAPIfinder=FindOntologyData(ontologies=[ontology_name],absolute_path=absolute_path)results=MutatoAPI(finder).swap(tokens)Enforcer.is_list_of_dicts(results)returnresultsImportfromowl_parserimportowl_parserUsageresults=owl_parser(tokens,ontology_name="<ontology-name>",absolute_path="<absolute-path>")
Package: owl-pipeline-client
Client for submitting Owl pipelines to a remote cluster running Dask on Kubernetes.Owl is a framework for submitting jobs (a.k.a. pipelines) in a remote cluster.
The Owl server runs jobs in Kubernetes using Dask. The Owl client authenticates
with the remote server and submits the jobs as specified in a pipeline
definition file.Seedocumentationfor more information.
Package: owlracle-python
Owlracle PythonA simple Python API wrapper for OwlracleInstallationpip install owlracle-pythonObtaining API KeyTo obtain an API key, you will need to register a new API key onhttps://owlracle.info/Getting StartedTo get started, import the package, and initiate aOwlracleAPIinstance object by passing your API key:from owlracle_python import OwlracleAPI
owlracle = OwlracleAPI(api_key)You can also pass an optional user agent:owlracle = OwlracleAPI(api_key, useragent="User-Agent")Or a different network:owlracle = OwlracleAPI(api_key, network="bsc", useragent="User-Agent")QueriesBelow are a set of queries supported by theOwlracle API. All data is returned as a Python dictionary for easy data handling.Get Gas fee estimationresult = owlracle.get_gas_fee_estimation()
print(result)You can also pass theblocks,percentile,accept,feeinusd,eip1559,reportwei, andcalcfromparameters:result = owlracle.get_gas_fee_estimation(blocks=500, accept=99)
print(result)Get Gas historyresult = owlracle.get_gas_history()
print(result)You can also pass thefrom_,to,candles,page,timeframe,tokenprice, andtxfeeparameters:result = owlracle.get_gas_history(from_=17849981, to=17949981)
print(result)Get API key informationBy default, the api key supplied on object instance is the one that is checked:result = owlracle.get_api_key_information()
print(result)You can also supply another key to checkresult = owlracle.get_api_key_information(api_key="randomkey")
print(result)Get API key credit recharge historyBy default, the api key supplied on object instance is the one that is checked:result = owlracle.get_api_key_credit_recharge_history()
print(result)You can also supply another key to checkresult = owlracle.get_api_key_credit_recharge_history(api_key="randomkey")
print(result)Get API key usage logBy default, the api key supplied on object instance is the one that is checked:result = owlracle.get_api_key_usage_log()
print(result)You can also supply another key to checkresult = owlracle.get_api_key_usage_log(api_key="randomkey")
print(result)You can also pass thefromtime,totime, andlimitparameters:result = owlracle.get_api_key_usage_log(fromtime=1692462951)
print(result)You can also supply another key to check, while passing the parameters aboveresult = owlracle.get_api_key_usage_log(api_key="randomkey", fromtime=1692462951)
print(result)Get RPC endpointresult = owlracle.get_rpc_endpoint()
pp.pprint(result)TestingA set of tests have been included insidetestsfolder. You will need to setup an environment variable asOwlracleAPIKeywith your API keyChain slugsThese can be obtained from theAPI docs, or thenetworkattribute using:owlracle.get_rpc_endpoint()Authorsalb2001More informationowlracle-python on PyPIOwlracleOwlracle API
Package: owlrl
OWL-RLA simple implementation of the OWL2 RL Profile, as well as a basic RDFS inference, on top of RDFLib. Based mechanical forward chaining. The distribution contains:OWL-RL: the Python library. You should copy the directory somewhere into yourPYTHONPATH. Alternatively, you can also run thepython setup.py installscript in the directory.scripts/RDFConvertService: can be used as a CGI script to invoke the library. It may have to be adapted to the local server setup.scripts/owlrl: script that can be run locally on to transform a file into RDF (on the standard output). Run the script with-hto get the available flags.The package requires Python version 3.5 or higher; it depends onRDFLib; version 4.2.2 or higher is required. If you need the python 2.7.x compatible version, see the @/py2 branch in this repository.For the details on RDFS, see theRDF Semantics Specification; for OWL 2 RL, see theOWL 2 Profile specification.View theOWL-RL documentationonline:http://owl-rl.readthedocs.io/To view the changelog for this software library, seeCHANGELOG.rst.This software is released under the W3C© SOFTWARE NOTICE AND LICENSE. SeeLICENSE.txt.
Package: owlsec
OwlSec ToolkitDescriptionOwlSec Toolkit is a Python package designed to streamline and automate various penetration testing tasks, such as discovering subdomains, identifying interesting URLs, port scanning, SSL checking, and more. The toolkit provides a comprehensive and modular approach, making it a flexible tool for cybersecurity professionals and enthusiasts.
We take a more passive overview with more additions to be added in the future.FeaturesSubdomain Enumeration: Retrieve and display subdomains and interesting URLs from archives.Port Scanning: Identify open TCP and UDP ports.Web Server Identification: Check for alternative web servers on identified ports.Common Files & Directories Discovery: Check for common files and directories on each identified web server.Login Forms Discovery: Identify possible login forms and display their parameters.SSL Certificate Checker: Analyze and display SSL certificate details for a domain.InstallationInstall the package using pip:YOU MAY NEED TO MANUALLY DOWNLOAD HTTPXhttps://github.com/projectdiscovery/httpx/releases/download/v1.3.5/httpx_1.3.5_linux_386.zipIf you run pip install owlsec as root, you will be fine but if you want to use it as is, you will need to download the httpx file and manually move it into the installation folder, then runchmod +x httpxwhich will look something like:wgethttps://github.com/projectdiscovery/httpx/releases/download/v1.3.5/httpx_1.3.5_linux_386.zip
unziphttpx_1.3.5_linux_386.zip
chmod+xhttpx
mvhttpx/home/kali/.local/lib/python3.11/site-packages/owlsec/scripts/pentesting/pipinstallowlsecUsageThe toolkit can be used as a library in your Python projects or as a standalone script. Below is a basic usage guide:As a Standalone ScriptRun the script and provide the domain or IP address as input:python3main.pyFollow the on-screen prompts and provide the necessary input.As a LibraryYou can import the toolkit's functionalities into your own Python scripts:fromowlsecimport(get_subdomains_and_urls,run_httpx_for_domain,get_file_details,get_burp_responses,port_scan,SSLChecker)Use these functions as per your requirement in your custom scripts.Functions and Descriptionsprint_interesting_urls_and_subdomains(domain)Prints interesting URLs and subdomains of the given domain.print_port_scan_results(domain)Prints the results of a port scan on the specified domain.print_httpx_results(domain)Prints the HTTPx result for the given domain.print_file_details(domain)Prints details of common files and directories for the given domain.print_login_forms(domain)Prints potential login forms found on the given domain.check_and_print_ssl_status(domain)Checks and prints the SSL status of the specified domain.DisclaimerThis tool is intended for educational and legal penetration testing purposes only. The developers assume no responsibility for any misuse of this toolkit.
Package: owl-shell-pipeline
This is anOwl Pipelinethat runs
a script in the cluster.Installcurl-Ohttps://raw.githubusercontent.com/eddienko/owl-shell-pipeline/main/shell_pipeline/signature.yamlowladminpdefaddsignature.yamlPipeline DefinitionAn example pipeline definition file is:# Version of the configuration fileversion:1# Name of the pipelinename:shellcommand:|echo "Hello"sleep 300# output directory (optional)# - sets the directory where the script is run# - stores pipeline logs# output: /storage/user/outputresources:cores:1workers:1memory:1
Package: owl-tools
The Owl Embedded Python System is a free and open-source system for programming small 32-bit microcontrollers in Python. It is dramatically easier to use than other programming environments for microcontrollers, while still powerful enough to build just about anything. Try it out today!Owl is currently in a limited release. Right now, we have released VM binaries for TI Stellaris microcontrollers and the user toolchain as well as the complete source code. This is enough to get started programming microcontrollers, though there are more pieces yet to be released.You can find the Owl documentation, binaries and toolchains on our website athttp://embeddedpython.org/. If you have any questions about Owl, contact me attwb@embeddedpython.orgortwb@rice.edu.
Package: owlutils
Owl UtilsCommon set of utilities when building a web appParsing functions:safeintsafeintorzerosafeintorbignumbersafefloatjsonb_date_to_strpretty_jsononewhitejoin_strings_if_not_nullget_full_nameget_exception_tracebackInstallationpipinstallowlutilsUsage>>>fromowlutilsimportparsing>>>parsing.safeint("123")
Package: owm2json
owm2json packageOwm2json is a Python library for combining multiple OpenWeatherMap API calls into one.InstallationUse the package managerpipto install owm2json.pipinstallowm2jsonUsageimportowm2jsonapinames=["air_pollution","roadrisk"]myOWM=owm2json.owmRequestor(apinames,latitude,longitude,appid)print(myOWM.GetData())Explanationapinames: a list of APIs to call. The full list can be seen on the officialOpenWeatherMap web site.latitude,longitude: coordinates of the desired location.appid: API key to use with the service. You can obtain yours atOpenWeatherMapIf the call is successful,owm2jsonreturns a string that contains a concatenated version of all the API calls that were requested. It also contains version information about itself.Sample response fromowm2json:{"module":{"version":"0.1.86"},"air_pollution":{"coord":{"lon":12.34,"lat":12.34},"list":[{"main":{"aqi":2},"components":{"co":216.96,"no":0.36,"no2":2.49,"o3":98.71,"so2":5.19,"pm2_5":5.18,"pm10":5.46,"nh3":0.33},"dt":1617289200}]},"roadrisk":{"message":"Please use POST request according to the documentation https://openweathermap.org/api/road-risk"}}ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseGNU General Public License v3.0