Saravanan666/pypi-org huggingface dataset:
Package: osmtilecalc
osmtilecalcOpen Street Map Tile CalculatorCalculates Open Street Map tile coordinates required to map the given area
at certain zoom level.Mapped area (bounding box) is a rectangle determined by given location coordinates and
the radius parameter in kilometers which is a distance from the location to the corners
of the rectangle.Returns a list of urls pointing to calculated tiles.InstallationThis package is available on PyPIpip install osmtilecalcUsageosmtilecalc latitude longitude radius zoom_level [-h] [-t] [-m]positional arguments:latitudeLatitude of location in decimal formatlongitudeLongitude of location in decimal formatradiusRadius from location in kilometerszoom_levelMap zoom level (0-21)optional arguments:-h, --helpShow this help message and exit-t, --total-onlyOnly show total number of tiles-m, --milesChange radius unit to US mileExamplesYou can use theosmtilecalccommand to calculate your tiles:$osm-tile-calc54.518918.5305512https://c.tile.openstreetmap.org/12/2257/1304.png
https://b.tile.openstreetmap.org/12/2257/1305.png
https://a.tile.openstreetmap.org/12/2258/1304.png
https://c.tile.openstreetmap.org/12/2258/1305.png
https://c.tile.openstreetmap.org/12/2259/1304.png
https://c.tile.openstreetmap.org/12/2259/1305.pngOr you can use theget_urls_for_locationfunction to do it in your
code:>>>fromosmtilecalcimportget_urls_for_location>>>get_urls_for_location([54.5189,18.5305],5,11)['https://b.tile.openstreetmap.org/11/1128/652.png', 'https://b.tile.openstreetmap.org/11/1129/652.png']
Package: osm-to-sandbox
OpenStreetMap To SandboxThis is a script to download data from OSM API and upload it to themapping sandbox.Note that it clears all data in the sandbox beforehand. NEVER change
endpoint addresses in the script.Installationpip install --user osm-to-sandboxUsageOpen thebounding box tool,
draw a box, choose "CSV" format below, and copy the numbers. Then do:osm_to_sandbox 1.2,3.4,5.6,7.8 --authWhere numbers are your bbox. The--authflag is required and will prompt for the Sandbox username and password.Get these here. The script would download the data from both
servers, then it would start doing its uploading work.AuthorWritten by Ilya Zverev, published under ISC license.
Package: osmviews
OSMViews Python ClientPython client forOSMViews, a world-wide
ranking of geographic locations based on OpenStreetMap tile logs. Please
see themain repositoryfor background.Usage# pip install osmviewsimportosmviewsosmviews.download('/tmp/osmviews.tiff')withosmviews.open('/tmp/osmviews.tiff')aso:print(f'Tokyo, Shibuya:{o.rank(35.658514,139.701330):>9.2f}')print(f'Tokyo, Sumida:{o.rank(35.710719,139.801547):>9.2f}')print(f'Zürich, Altstetten:{o.rank(47.391485,8.488945):>9.2f}')print(f'Zürich, Witikon:{o.rank(47.358651,8.590251):>9.2f}')print(f'Ushuaia, Costa Este:{o.rank(-54.794395,-68.251958):>9.2f}')print(f'Ushuaia, Las Reinas:{o.rank(-54.769225,-68.279174):>9.2f}')Tokyo,Shibuya:227437.98Tokyo,Sumida:60537.62Zürich,Altstetten:37883.31Zürich,Witikon:11711.94Ushuaia,CostaEste:2697.14Ushuaia,LasReinas:257.89
Package: osmviz
OSMVizAn OpenStreetMap Visualization Toolkit for PythonOSMViz LicenseOSMViz is released under the MIT license.
See LICENSE in this directory.OpenStreetMap LicenseTiles taken from the openstreetmap.org server
have a usage policy as outlined here:https://operations.osmfoundation.org/policies/tiles/These tiles are (c) OpenStreetMap & contributors, CC-BY-SA.
OpenStreetMap:https://www.openstreetmap.orgCC-BY-SA:https://creativecommons.org/licenses/by-sa/2.0/You can tell OSMViz to use any slippymap server provided
tiles that you wish, which may have its own usage policy.AboutOSMViz is a small set of Python tools for retrieving
and using Mapnik tiles from a Slippy Map server
(you may know these as OpenStreetMap images).RequirementsPython 3.8+Pillow and/or PygameInstallationEither:pip install osmvizOr just add the src directory to your PYTHONPATH.HelpSeehtml/doc.html
Package: osm-where
osm_whereSimple tool to getGeoURIfor given
location identified by URL or by its name (not 100% reliable, as
we don’t have any interface to choose between multiple options).Currently defaults to looking at Ukraine.Quick Start:# Get help messagepythonsrc/osm_where.py--help# Query by URLpythonsrc/osm_where.pyhttps://www.openstreetmap.org/node/4126283179# Query by place namepythonsrc/osm_where.py--nameKropyvnytskyiAll issues, questions, complaints, or (even better!) patches
should be send viaemail to me(for
patches usegit send-email).
Package: osmx
A Python package to read OSM Express (.osmx) database files.Right now, only access to nodes, ways and relations by ID is supported.InstallationpipinstallosmxUsageimportsysimportosmxenv=osmx.Environment('your_database.osmx')txn=osmx.Transaction(env)locations=osmx.Locations(txn)nodes=osmx.Nodes(txn)ways=osmx.Ways(txn)way=ways.get(123456)fornode_idinway.nodes:print(locations.get(node_id))print(osmx.tag_dict(way.tags))
Package: osnap-client
OSNAPThe Open Swarm Network Agent Protocol (OSNAP) is a standardized protocol for building autonomous AI agents and swarms or organizations of agents. The primary goal of OSNAP is to facilitate interoperability, collaboration, and ease of development across various autonomous AI systems, similar to how HTTP serves as a standard protocol for the World Wide Web.Table of ContentsWhyHow to use in your projectExamplesArchitecture OverviewNext-UpsHow to ContributeWhyCurrently, the development and implementation of autonomous AI agents and swarms are highly fragmented, with different projects utilizing various custom-built protocols and communication methods. This lack of standardization can lead to difficulties in:Interoperability between different AI systems and swarm implementations.
Reusability of code, components, and algorithms.
Collaboration between researchers and practitioners in the field of autonomous AI and swarm intelligence.
OSNAP aims to address these issues by providing a well-defined, standardized protocol for building and interacting with autonomous AI agents and swarms.How to use in your projectaaaaExamplesArchitecture overviewNext-upsmake adding new models as easy as possible, including custom deployed ones like llamamulti-key support for higher scalabilityHow to Contributefollow the SOLID principles and don't break the abstractionscreate bite-sized PRs
Package: osnapi
OpenSense APIThe Unofficial opensense.network APIosnapi documentationofficial documentationWhat ishttps://opensense.network/?OpenSense is "A participatory open sensor data platform", making a uniform data format for a variety of open source weather data sources available to the public.For more information, visitthe website.InstallTo use this module in your project, you have multiple options. The easiest is to install it using thepippacketmanager:pip install osnapiYou can also clone this repo and create an editable install, in case you want to customize e.g. the error messages behaviour:git clone <this repo>
cd <this repo>
pip install -e .This module usesnbdev, a jupyter notebook based environment. If you go for the editable install, we recommend you to take a short look at nbdev first.If you want a simple portable module, you can also just copy theosnapifolder into your project. No installation necessary.How to useOnce you have installed this module using any of the methods above, you can useimport osnapi as apiand start coding.If you want to use functions that require a login, use:api.login(username, password)The default api_enpoint ishttps://www.opensense.network/beta/api/v1.0/. This is stored inside theSettingsobject.TheSettingsobject looks like this:classSettings():api_endpoint='https://www.opensense.network/beta/api/v1.0/'username=Nonepassword=Noneauth_token=NoneTo change theapi_endpoint,username,password, orauth_tokenmanually, simply assign to the Settings objects class variables e.g.api.Settings.username = 'Alice'. Doing this is normally not necessary, because the values will automatically be filled out when usingapi.login().It's important that you do not use an instance of Settings, but the class directly, because instanced changes will not be seen by the module.To view your current settings, you can however instantiate a Settings object withapi.Settings(). Its string representation will display the current settings.The authentication tokens you get from the server are JSON Web Tokens.A Token is valid for one hour, but will automatically be reaquired using the credentials saved in Settings, once it runs out.For an overview and documentation of the available functionality, check out the links at the top of this READMEReferencesAn example of a project using this api is:https://github.com/flpeters/serverless_opensense_dwd_importerIn that project we implement a data importer that downloads data fromhttps://www.dwd.de/and pushes that data to opensense.
Package: os-net-config
Team and repository tagsOverviewos-net-configis a host network configuration tool which supports multiple
backend configuration providers.Documentation:https://docs.openstack.org/os-net-config/latestSource:https://opendev.org/openstack/os-net-configBugs:https://bugs.launchpad.net/os-net-configRelease Notes:https://docs.openstack.org/releasenotes/os-net-configFree software: Apache License (2.0)FeaturesThe core aim of this project is to allow fine grained (but extendable)
configuration of the networking parameters for a network host. The
project consists of:A CLI (os-net-config) which provides configuration via a YAML or JSON
file formats.  By default os-net-config uses a YAML config file located
at /etc/os-net-config/config.yaml. This can be customized via the
–config-file CLI option.A python library which provides configuration via an object model.
Package: os-netloc-rule
os-netloc-ruleA library for matching netloc.Netloc is a concept to describe the location of a URL, it can be treated as 3-tuple (host, port, scheme)Netloc match is a very common and useful operation on processing URL. For example, netloc blacklist is a series rules of netloc withALLOWEDorDISALLOWED:abc.example.com|80|http ALLOWED
.example.com|| DISALLOWEDYou can skip processinghttp://www.example.com/001.htmlbecase it match.example.com|| DISALLOWED.Installpip install os-netloc-ruleAPIsload netloc and rulefrom os_netloc_rule import Matcher

netloc_rules = [
    ('www.example.com||', 1),
    ('abc.example.com||', 2),
    ('abc.example.com|8080|', 3),
]

matcher = Matcher()
for netloc_string, rule in rules:
    matcher.load_from_string(netloc_string, rule)match netlocmatcher.match('www.example.com')
matcher.match('abc.example.com', '8080', 'http')if there are same netloc with different rule,  the latter covers the former by default. But you can custom your owncmpfunction when loading rulesdef cmp(former, latter):
    return -1 if former > latter else 1
    
matcher.load(host, port, scheme, rule, cmp=cmp)iter netlocfor netloc, rule in matcher.iter():
    passUnit TeststoxLicenseMIT licensed.
Package: os_networksv2_python_novaclient_ext
=================================os_networksv2_python_novaclient_ext=================================Adds network extension support to python-novaclient.This extension is autodiscovered once installed. To use::pip install os_networksv2_python_novaclient_extnova network                     Show a networknova network-create              Create a networknova network-delete              Delete a networknova network-list                List networksnova network-show                Show a network
Package: osnma-core
osnma_coreosnma_core is a helpfull package that will provide a bunch of methods and atributes to
implement an OSNMA Galileo receiver.To instanciate an OSNMACore object and start performing OSNMA functions:import osnma_core

osnma = osnma_core.OSNMACore()
osnma.process_pkr(raw_data)FeaturesCan process and verify complete OSNMA messagesThe verification of different messages also can be done manuallyStores the value and size of OSNMA fieldsContains auxiliar data for the OSNMA receiver such as the structure of messages, bitmasks and field meanings.InstallationInstall osnma_core by running:python3 pip install osnma_coreContributeSource Code:https://github.com/Algafix/osnma_corePyPI:https://pypi.org/project/osnma-core/SupportIf you are having issues, please let me know.LicenseThe project is licensed under the GPLv3 license.
Package: os_nova_ha_monitor
# Openstack Nova HA monitor packageOpenstack Nova HA monitor is monitoring state of ocmpute nodes and when any of them fails itwill initial compute node takeover on HA node.## Documentation### Consul K/V store values_ha_cluster/compute_nodes/{{ compute-node }}/status/failed_- fail status of the compute node, if this is set to true, this node is considered failed,and will be recovered. If this status becomes "True" it can only be reset to "False"manually by Administrator._ha_cluster/compute_nodes/{{ compute-node }}/status/recovered_- this value is becomes True, once HA node attempts to recover this node. HA nodes onlytry to recover nodes which have "status/failed" set to True and "status/recovered"set to "False". Once this becomes True, only andministrator can set it back to False_ha_cluster/compute_nodes/{{ compute-node }}/internal/number_fails_- counter of HA Monitor check interval failures. HA Monitor periodically checkshealth of compute node, and increases this counter. When this counter reaches definedthreshold, the HA Monitor sets "status/failed" to True._ha_cluster/compute_nodes/{{ compute-node }}/internal/runtime_config_- runtime local config of the compute node. This config contains allrequired information for performing the recovery._ha_cluster/compute_nodes/{{ compute-node }}/config/bmc/user_- ilo/ipmi user name used to managed this compute-node remotely_ha_cluster/compute_nodes/{{ compute-node }}/config/bmc/password_- ilo/ipmi user password used to managed this compute-node remotely_ha_cluster/compute_nodes/{{ compute-node }}/config/bmc/ip_- ilo/ipmi ip address used to managed this compute-node remotely_ha_cluster/compute_nodes/{{ compute-node }}/config/ssh/user_- ssh-check required test user login_ha_cluster/compute_nodes/{{ compute-node }}/config/ssh/password_- ssh-check required test user password_ha_cluster/compute_nodes/{{ compute-node }}/general_- empty directory for now_ha_cluster/ha_nodes/{{ ha-node }}/status/in_use_- When HA Node starts recovering a compute node, it marks it sets this value to True,to prevent condition where two compute nodes fail at the same time and HA Node triesto recover both simultaneously. Updating of this value is in critical section._ha_cluster/ha_nodes/{{ ha-node }}/general_- empty directory for now## Development### Running unit tests```consolepytest -v -s```### Running integration testsIntegration tests are implemented in `tests/integration` directory. They are based on vagrant which will start 2 VMs w# TODO1) Split Consul based cluster monitor from NOVA HA recovery part.2) Create integration tests.
Package: os_nova_ha_utils
# Simple module for Python level access to OS information.This module is used as part of NOVA HA module used in OpenStack Deployment at CRA.## DevelopmentRunning tests`console python-mpytest `## ReleaseBefore release bump version number in setup.py and then push it to pypi servers.##### Test release upload first`console python setup.py sdist upload-rpypitest `##### Release upload`console python setup.py sdist upload-rpypi `
Package: oso
DeprecatedWe have deprecated the legacy Oso open source library. We have plans for the next open source release and we’re looking forward to getting feedback from the community leading up to that point (please reach out to us in the Slack #help channel). In the meantime, if you’re happy using the Oso open source library now, nothing needs to change – i.e., we are not end-of-lifing (EOL) the library and we’ll continue to provide support and critical bug fixes. More context:here.OsoWhat is Oso?Oso is a batteries-included framework for building authorization in your application.With Oso, you can:Model: Set up common permissions patterns like role-based access control (RBAC) and relationships using Oso’s built-in primitives. Extend them however you need with Oso’s declarative policy language, Polar.Filter: Go beyond yes/no authorization questions. Implement authorization over collections too - e.g., “Show me only the records that Juno can see.”Test: Write unit tests over your authorization logic now that you have a single interface for it. Use the Oso debugger or REPL to track down unexpected behavior.Oso offers libraries forNode.js,Python,Go,Rust,Ruby, andJava.Our latest creation Oso Cloud makes authorization across services as easy as oso.authorize(user, action, resource).Learn about it.DocumentationTo get up and running with Oso, try theGetting Started guide.Full documentation is available atdocs.osohq.com.Check outUse Casesto learn more about how teams are using Oso in production.To learn about authorization best practices (not specific to Oso), read theAuthorization Academyguides.Community & SupportIf you have any questions on Oso or authorization more generally, you can join our engineering team & hundreds of other developers using Oso in our community Slack:Share your storyWe'd love to hear about your use case and experience with Oso. Share your story in ourSuccess Stories issue.DevelopmentCoreOso's Rustcoreis developed againstRust's latest stable
release.Language librariesOso's language libraries can be developed without touching the Rust core, but
you will still need the Rust stable toolchain installed in order to build the
core.To build the WebAssembly core for the Node.js library, you will need to havewasm-packinstalled and available on your system PATH.Language requirementsTo work on a language library, you will need to meet the following version
requirements:Java: 11+Maven: 3.6+Node.js: 12.20.0+Yarn 1.22+Python: 3.7+Ruby: 2.4+Bundler 2.1.4+Rust: 1.46+Go: 1.14+Contributing & JobsSee:CONTRIBUTING.md.If you want to work on the Oso codebase full-time, visitour jobs page.LicenseSee:LICENSE.
Package: oso-cloud
Oso Cloud Client for PythonThe Oso Cloud client for Python provides a convenient wrapper around the Oso
Cloud HTTP API for applications and services written in Python.What is Oso Cloud?Oso Cloud is authorization-as-a-service. It provides abstractions for building
and iterating on authorization in your application – based on years of work
with hundreds of engineering teams.Model: Build your authorization model using primitives for common patterns
like multi-tenancy and RBAC. Express custom rules using Polar, a
declarative policy language for authorization.Store: Store your authorization data using a best-practices data model and
use it for access decisions across all of your services.Enforce & Query: Add enforcement calls to your application to perform
yes/no permission checks, filter resources by permissions, list a user's
roles, and show/hide pieces of your UI.Test & Watch: Write tests over your authorization policies before you push
them live. See logs of authorization decisions in real time.For more information on  how Oso Cloud works and how it fits into your
architecture, check out theintroduction.DocumentationTo get up and running with Oso Cloud, try theQuickstart guide.For method-level documentation, see thePython Client API documentation.Full documentation is available atosohq.com/docs.To learn about authorization best practices (not specific to Oso), read theAuthorization Academyguides.Community & SupportIf you have any questions on Oso Cloud or authorization more generally, you can
join our engineering team & hundreds of other developers using Oso in our
community Slack:
Package: osome
The bucket of python shell wrappers around os library, no dependencies, simple API.Python2.6Python2.7Python3.3PyPy1.9osome: (python os module wrappers)path - path wraper around all methods related to path manipulationrun - subprocess wrapperDocumentationhttps://osome.readthedocs.org/Codehttps://github.com/xando/osomeInstallpipinstallosomeosome.path>>>fromosomeimportpath>>>path('/var/log')/var/log>>>path('/var','log')/var/log>>>path('/var/log').own'766'>>>path('/var/log').is_dir()True>>>foreinpath('/var/log'):...printe/var/log/boot.log/var/log/dmesg/var/log/faillog/var/log/kern.log/var/log/gdm>>>path('/var/log/').ls('*log')[/var/log/boot.log,/var/log/faillog,/var/log/kern.log]>>>path('/var/log')/'syslog'/var/log/syslog>>>(path('/var/log')/'syslog').exists>>>path('/var/log','syslog').open('r')<openfile'/var/log/syslog',mode'r'at0x294c5d0>>>>path('/var/log').cp('copy',r=True)copy>>>path('/home/user/test_tmp_directory').replace('_','-')'/home/user/test-tmp-directory'>>>location=path('/home/user/test_tmp_directory')>>>location.mv(location.replace('_','-'))osome.run>>>fromosomeimportrun>>>printrun('uname -r').stdout3.7.0-7-generic>>>run('uname -a').status0>>>printrun('rm not_existing_directory').stderrrm:cannotremove`not_existing_directory': No such file or directory>>>printrun('ls -la','wc -l','wc -c')3>>>printrun('ls -la').stdout.lines['total 20','drwxrwxr-x 3 user user 4096 Dec 20 22:55 .','drwxrwxr-x 5 user user 4096 Dec 20 22:57 ..','drwxrwxr-x 2 user user 4096 Dec 20 22:37 dir','-rw-rw-r-- 1 user user    0 Dec 20 22:52 file']fromosomeimportrunrun('grep something',data=run.stdin)$psaux|pythonscript.pytestsTravis CI,https://travis-ci.org/xando/osomeTests are implemented withpy.tests, to run:pythonruntests.pybased on/inspired byhttp://www.ruby-doc.org/stdlib-1.9.3/libdoc/fileutils/rdoc/index.htmlhttps://github.com/kennethreitz/clinthttps://github.com/jaraco/path.pyauthorSebastina Pawluś (sebastian.pawlus@gmail.com)contributorsJakub (kuba.janoszek@gmail.com)Angel Ezquerra