Saravanan666/pypi-org huggingface dataset:
Package: osmlocator
OsmLocatorA tool to localize overlapping scatter marks. This work formulates the scatter marks localization as an optimization problem on cluster-based re-visualization.For a binary image of a scatter image, OsmLocator can locate the marks in the binary image. The following two images show the mark localization results of two scatter images in which black dots mark out the located position of scatter marks.If you would like to use or know about this package, please refer to and consider citing the following paper:@article{qiu2023osmlocator,
  title={OsmLocator: locating overlapping scatter marks by simulated annealing on clustering-based re-visualization},
  author={Yuming Qiu, Aleksandra Pizurica, Qi Ming and Nicolas Nadisic},
  journal={arXiv preprint arXiv:2312.11146},
  url={https://arxiv.org/abs/2312.11146},
  year={2023}
}Installation and DependenciesYou should have opencv and numpy library installed.
You should have opencv and numpy library installed.numpyopencv_pythonThe package is on PyPI, so simply runpip install osmlocatorto install it.
If you want the newest and freshest version, you can install it by executing:pip install git+https://github.com/ccqym/OsmLocator.gitDatasetWe publish a new dataset SML2023 for overlapping scatter marks localization along with this work. You can find all images and corresponding annotations in thedatasets/sml_dataset2023dir.gitclonehttps://github.com/ccqym/OsmLocatorcdOsmLocator/datasets/sml_dataset2023
lsUsageYou can use this package by two ways: library or CLIOsmLocator# Firstly create a new OsmLocator instance.locator=OsmLocator(settings)# Then use the method locate to obtain the marks' location.markLoctions=locator.locate(binImg)ExamplesLet us take a case from SML2023 dataset to show how to use.importcv2importnumpyasnpimportosmlocatorasolsettings=ol.getDefaultSetting()locator=ol.OsmLocator(settings)img=cv2.imread('cli_tool/imgs/sml_00001.png',cv2.IMREAD_GRAYSCALE)ifimgisNone:exit()A_Threshold_Value=200binImg=(img<A_Threshold_Value).astype(np.uint8)*255#The gray image can be converted into a binary image by OTSU algorithm.markLoctions=locator.locate(binImg)print(markLoctions)evaluatorThe data format is [{'x':p1_x, 'y':p1_y},...,{'x':pn_x, 'y':pn_y}]. Following the above example, the locatedmarkLoctionscan be evaluated like the following codes.importjsonimportosmlocatorasoljcont=json.load(open('cli_tool/imgs/sml_00001.json'))gtMarkLocs=jcont['marks_location']score=ol.evaluateXY(gtMarkLocs,markLoctions,img.shape)print(score)Evaluation results are a dict like{'ass_score':{'1':0.9020016023684265,'5':0.9084003204736852,'10':0.9092001602368427}}the key '1', '5' and '10' are the $\lambda$ parameter of ACB metric.CLIWe have wrapped the functions of library as a CLI tool, so you can use the function by the following command.The usage of the wrapper is as follow:gitclonehttps://github.com/ccqym/OsmLocatorcdOsmLocator/cli_tool/# use '-h' or '--help' to get usage informationpythonmain.py-h# you can run a shell script to run all examples../run_examples.shLicenseCopyright (c) Cigit, Cas, China, and Ugent, Belgium. All rights reserved.
Licensed under theMPL-2.0license.
Package: osm-login-python
osm-login-pythonLibrary to provide osm login oauth2.0 exchange to python projectsMakes it very easier to implement osm authentication login to
their project with oauth2.0📖DocumentationInstall withpippipinstallosm-login-pythonImport Auth and initialize class with your credentialsfromosm_login_python.coreimportAuthosm_auth=Auth(osm_url=YOUR_OSM_URL,client_id=YOUR_OSM_CLIENT_ID,client_secret=YOUR_OSM_CLIENT_SECRET,secret_key=YOUR_OSM_SECRET_KEY,login_redirect_uri=YOUR_OSM_LOGIN_REDIRECT_URI,scope=YOUR_OSM_SCOPE,)UsageProvides 3 Functions inside Auth class :login() -- Returns the login url for osmcallback() -- Returns the access token for the userdeserialize_access_token() -- returns the user dataExampleOn django :fromdjango.confimportsettingsfromosm_login_python.coreimportAuthfromdjango.httpimportJsonResponseimportjson# initialize osm_auth with our credentialsosm_auth=Auth(osm_url=YOUR_OSM_URL,client_id=YOUR_OSM_CLIENT_ID,client_secret=YOUR_OSM_CLIENT_SECRET,secret_key=YOUR_OSM_SECRET_KEY,login_redirect_uri=YOUR_OSM_LOGIN_REDIRECT_URI,scope=YOUR_OSM_SCOPE,)deflogin(request):login_url=osm_auth.login()returnJsonResponse(login_url)defcallback(request):# Generating token through osm_auth library methodtoken=osm_auth.callback(request.build_absolute_uri())returnJsonResponse(token)defget_my_data(request,access_token:str):user_data=osm_auth.deserialize_access_token(access_token)returnJsonResponse(user_data)Check Django integration example herehttps://github.com/hotosm/fAIr/tree/master/backend/loginCheck FastAPI integration example herehttps://github.com/hotosm/export-tool-api/tree/develop/API/authVersion ControlUsecommitizenfor version controlContirbuteContributions are welcome !
Package: osmnet
OSMnetTools for the extraction of OpenStreetMap (OSM) street network data.
Intended to be used in tandem with Pandana and UrbanAccess libraries to
extract street network nodes and edges.OverviewOSMnet offers tools to download street network data from OpenStreetMap
and extract a graph network comprised of nodes and edges to be used inPandanastreet network accessibility calculations and orUrbanAccessto connect GTFS transit networks to road networks.Let us know what you are working on or if you think you have a great use case
by tweeting us at@urbansim.Library StatusForthcoming improvements:Tutorial/demoReporting bugsPlease report any bugs you encounter viaGitHub issues.Contributing to OSMnetIf you have improvements or new features you would like to see in OSMnet:Open a feature request viaGitHub issues.Contribute your code from a fork or branch by using a Pull Request and request a review so it can be considered as an addition to the codebase.InstallationcondaOSMnet is available on conda and can be installed with:conda install osmnet--channelconda-forgeIt is recommended to install via conda and the conda-forge channel especially if you find you are having issues installing some of the spatial dependencies.pipOSMnet can be installed via PyPI:pip install osmnetDevelopment InstallationTo install OSMnet from source code, follow these steps:Git clone theOSMnet repoin the cloned directory run:python setup.py developTo update to the latest version:Usegit pullinside the cloned repositoryDocumentationDocumentation for OSMnet can be foundhere.Related UDST librariesPandanaUrbanAccess
Package: osmnx
OSMnxOSMnxis a Python package to easily download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap. You can download and model walking, driving, or biking networks with a single line of code then analyze and visualize them. You can just as easily work with urban amenities/points of interest, building footprints, transit stops, elevation data, street orientations, speed/travel time, and routing.OSMnx 2.0 is coming soon: read themigration guide.CitationIf you use OSMnx in your work, please cite the journal article:Boeing, G. 2017. "OSMnx: New Methods for Acquiring, Constructing, Analyzing, and Visualizing Complex Street Networks."Computers, Environment and Urban Systems65, 126-139.Getting StartedFirst read theGetting Startedguide for an introduction to the package and FAQ.Then work through theOSMnx Examplesgallery for step-by-step tutorials and sample code.InstallationFollow theInstallationguide to install OSMnx.SupportIf you have any trouble, consult theUser Reference. The OSMnx repository is hosted onGitHub. If you have a "how-to" or usage question, please ask it onStackOverflow, as we reserve the repository's issue tracker for bug tracking and feature development.LicenseOSMnx is open source and licensed under the MIT license. OpenStreetMap's open datalicenserequires that derivative works provide proper attribution. Refer to theGetting Startedguide for usage limitations.
Package: osmolytes
This code attempts to predict the influence of osmolytes on protein stability, using the methods in:  Auton M, Bolen DW. Predicting the energetics of osmolyte-induced protein folding/unfolding.Proc Natl Acad Sci102:15065 (2005)https://doi.org/10.1073/pnas.0507053102. Other models may be added in the future.
Package: osmon
osmonAre You tired of having to one of these speedtest websites every time you want to check you internet connection?
We've got solution designed specially for You!Introducing... osmon!Minimal weight and easy in use system monitor.Installationpip3installosmonExamplesIf You get stuck:$osmon-h
usage:osmon[-h][--cpu][--gpu][--ram][--down][--up][--ping][--net][--all]Getsomestats.

optionalarguments:-h,--helpshowthishelpmessageandexit--cpu,-cCheckCPUparameters--gpu,-gCheckGPUparameters--ram,-rCheckRAMparamters--down,-dCheckdownloadspeed--up,-uCheckuploadspeed--ping,-pCheckdownloadspeed--net,-nCheckallnetworkparameters--all,-aCheckallpossibleparametersTo get output off all possible measurements run:$osmon-a

CPUusage:2.1%
UsagebyThreads:121-[3.3%]2-[2.5%]3-[3.3%]4-[1.7%]5-[1.6%]6-[0.0%]7-[0.0%]8-[1.6%]9-[2.5%]10-[0.0%]11-[3.3%]12-[4.1%]VRAM:1-[592]MBUsed
GPUUsage:[1]RAMusage:27.2%
Available:72.8%
Retrievingspeedtest.netconfiguration...
TestingfromSkynetsp.zo.o.($IP)...
Retrievingspeedtest.netserverlist...
Selectingbestserverbasedonping...
HostedbyOrangePolskaS.A.(Warsaw)[14.84km]:3.898ms
Testingdownloadspeed................................................................................
Download:495.75Mbit/s
Testinguploadspeed......................................................................................................
Upload:60.53Mbit/sWhy?To gather Your data.
And but mostly to learn new things and have fun.
Package: osmopy
osmopyVersion 0.0.1Tools for Osmosis wallet management and offline transaction signingInstallingInstalling from PyPIrepository:pip3installosmopyInstalling from source code:gitclonehttps://github.com/bro-n-bro/osmopycdcyberpy
pip3install.UsageGenerating a walletfromosmopyimportgenerate_walletwallet=generate_wallet()The value assigned towalletwill be a dictionary just like:{"seed":"arch skill acquire abuse frown reject front second album pizza hill slogan guess random wonder benefit industry custom green ill moral daring glow elevator","derivation_path":"m/44'/118'/0'/0/0","private_key":b'\xbb\xec^\xf6\xdcg\xe6\xb5\x89\xed\x8cG\x05\x03\xdf0:\xc9\x8b\x85\x8a\x14\x12\xd7\xa6a\x01\xcd\xf8\x88\x93',"public_key":b"\x03h\x1d\xae\xa7\x9eO\x8e\xc5\xff\xa3sAw\xe6\xdd\xc9\xb8b\x06\x0eo\xc5a%z\xe3\xff\x1e\xd2\x8e5\xe7","address":"bostrom1uuhna3psjqfxnw4msrfzsr0g08yuyfxesqggqd",}Converter functionsMnemonic seed to private keyfromosmopyimportseed_to_privkeyseed="teach there dream chase fatigue abandon lava super senior artefact close upgrade"privkey=seed_to_privkey(seed,path="m/44'/118'/0'/0/0")Private key to public keyfromosmopyimportprivkey_to_pubkeyprivkey=bytes.fromhex("6dcd05d7ac71e09d3cf7da666709ebd59362486ff9e99db0e8bc663570515afa")pubkey=privkey_to_pubkey(privkey)Public key to addressfromosmopyimportpubkey_to_addresspubkey=bytes.fromhex("03e8005aad74da5a053602f86e3151d4f3214937863a11299c960c28d3609c4775")addr=pubkey_to_address(pubkey)Private key to addressfromosmopyimportprivkey_to_addressprivkey=bytes.fromhex("6dcd05d7ac71e09d3cf7da666709ebd59362486ff9e99db0e8bc663570515afa")addr=privkey_to_address(privkey)Address to addressfromosmopyimportaddress_to_addressaddr=address_to_address(address,prefix)Signing transactionsSend transactionfromosmopyimportTransactiontx=Transaction(privkey=bytes.fromhex("26d167d549a4b2b66f766b0d3f2bdbe1cd92708818c338ff453abde316a2bd59"),account_num=11335,sequence=0,fee=0,gas=200000,memo="",chain_id="bostrom-testnet-1",sync_mode="broadcast_tx_sync",# "broadcast_tx_sync", "broadcast_tx_async", "broadcast_tx_commit")tx.add_transfer(recipient="osmo103l758ps7403sd9c0y8j6hrfw4xyl70j4mmwkf",amount=387000)tx.add_transfer(recipient="osmo1lzumfk6xvwf9k9rk72mqtztv867xyem393um48",amount=123)One or more token transfers can be added to a transaction by calling theadd_transfermethod.When the transaction is fully prepared, callingget_pushablewill return a signed transaction in the form of a JSON string.pushable_tx=tx.get_pushable()This can be used as request body when calling endpoint of thehttps://rpc_api:26657, more detaileshereimportrequestsres=requests.post(url=<rpc_api>,data=pushable_tx)Or you can callbroadcast(rps: str)method and it will make a signed transaction and POST it with defined RPC_api.res=tx.broadcast(url=<RPC_api>)
Package: osmosis
OsmosisAn experimental Stable Diffusion web frontend.WarningThis project isnot production ready!For a more actively developed and advanced project, check outInvokeAI:pFeaturesDiffusersmodelsCoreML models(macOS)Custom scheduler supportHalf-precision (fp16) support for main modelsDiffusers to CoreML model conversionReal-ESRGANupscalingGFPGANface restorationStructured metadata according tohttps://github.com/invoke-ai/InvokeAI/issues/266Gallery viewImage to imageInpainting/ outpaintingTraining withLoRA/Textual Inversion/DreamboothxFormersoptimizationApple SiliconoptimizationPyTorch 2.0optimizationCheckpoint /Safetensorsfile modelsSystem RequirementsIdeally, a NVIDIA or Apple Silicon GPUAt least 10 GB of RAMAs much disk space as your models requireA modern browserInstallationOsmosis is a web app distributed asa package on PyPI.Ideally, usepipxto install Osmosis in its own isolated environment. Firstinstall pipx, then run$pipxinstallosmosisto install. Alternatively, simple usepipto install globally:$pipinstall[--user]osmosisNVIDIA instructionsIf you're on a NVIDIA GPU, replaceosmosisin the install scripts withosmosis[xformers]to enablexFormersoptimization support. In addition, add--pip-args "--extra-index-url https://download.pytorch.org/whl/cu117"to the end to install a CUDA-enabled PyTorch build.$pipxinstall'osmosis[xformers]'--pip-args"--extra-index-url https://download.pytorch.org/whl/cu117"# or in pip:$pipinstall[--user]'osmosis[xformers]'--extra-index-urlhttps://download.pytorch.org/whl/cu117Linux / AMD instructionsIf you're on Linux and using an AMD GPU, you can also useROCm-optimized PyTorch wheels on install.$pipxinstallosmosis--pip-args"--extra-index-url https://download.pytorch.org/whl/rocm5.2"# or in pip:$pipinstall[--user]osmosis--extra-index-urlhttps://download.pytorch.org/whl/rocm5.2Nix InstructionsIf you are on macOS, Windows with WSL2, or Linux, you can use the Nix flake to install osmosis for any gpu.Withnix run:# for NVIDIA cards$nixrungithub.com:ryanccn/osmosis#osmosis-nvidia# for AMD cards$nixrungithub.com:ryanccn/osmosis#osmosis-amd# Apple silicion users can install eitherAs an overlay:{pkgs,osmosis,...}:{nixpkgs.overlays =[osmosis.overlays.default];environment.systemPackages =withpkgs;[osmosis-nvidia];}Withnix profile:$nixprofileinstallgithub.com:ryanccn/osmosis#osmosis-nvidia
$nixprofileinstallgithub.com:ryanccn/osmosis#osmosis-amdWithnix-env:# in the root of the project$nix-env-iApackages.x86_64-linux.osmosis-nvidia
$nix-env-iApackages.x86_64-linux.osmosis-amdRunning$ osmosisis all you need to start the web UI.
Package: osmosis-aws-driver
osmosis-aws-driver💧 Osmosis AWS Driver Implementationoceanprotocol.comTable of ContentsSetupCode StyleTestingNew VersionLicenseSetupTo use Amazon S3 storage with Brizo, you must set up some Amazon S3 storage and set some AWS configuration settings on the computer where Brizo is running. For details, see:the README.md file in the Brizo repositoryandthe tutorial about how to set up Amazon S3 storage for use with Ocean ProtocolAlternatively, you can set the access keys/secret in environment variables as in the fileaws-access-env-vars.Code StyleInformation about our Python code style is documented in thepython-developer-guideand thepython-style-guide.TestingAutomatic tests are setup via Travis, executingtox.
Our tests use the pytest framework.New VersionThebumpversion.shscript helps to bump the project version. You can execute the script using as first argument {major|minor|patch} to bump accordingly the version.LicenseCopyright 2018 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: osmosis-azure-driver
osmosis-azure-driver💧 Osmosis Azure Driver Implementationoceanprotocol.comTable of ContentsSetupCode StyleTestingNew VersionLicenseSetupTo use Azure Storage with Brizo, you must set up some Azure Storage and then tell Brizo about your Azure Storage account by setting some Brizo configuration settings (either in a Brizo config file or in some environment variables). For details, see:the README.md file in the Brizo repositoryandthe tutorial about how to set up Azure Storage for use with Ocean ProtocolCode StyleInformation about our Python code style is documented in thepython-developer-guideand thepython-style-guide.TestingAutomatic tests are set up via Travis, executingtox.
Our tests use the pytest framework.New VersionThebumpversion.shscript helps to bump the project version. You can execute the script using as first argument {major|minor|patch} to bump accordingly the version.LicenseCopyright 2018 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.Note: Installing this package (osmosis-azure-driver) installs the azure package which has an MIT license. Installing the azure package installs the certifi package which has an MPL-2.0 license. The certifi source code can be found athttps://github.com/certifi/python-certifi. Installing the azure package also installs the chardet package which might have licensing that is incompatible with the MIT license (and the Apache-2.0 license). We have openedan issueon the azure-sdk-for-python repository to let them know about the potential licensing conflict and to resolve it if necessary.
Package: osmosis-driver-interface
osmosis-driver-interface💧 A membrane between the decentralized world and centralized worldoceanprotocol.comTable of ContentsHow this worksCode styleTestingNew VersionLicenseHow this worksThis driver interface allows a data service provider such asprovider-pyto work with any cloud backend such as Azure, AWS by using a driver that implements theosmosisinterface.Theosmosisinterface is defined indata_plugin.pyandcomputing_plugin.py.
After writing a new driver, add a mapping indriver_map.jsonto allowosmosisto identify urls that the
new driver is suitable to work with.
Thedriver_mapmust be defined in the environment variableOSMOSIS_DRIVER_MAPusing one of these methods:export OSMOSIS_DRIVER_MAP="/path/to/driver_map.json"export OSMOSIS_DRIVER_MAP='{"core.windows.net": "azure", "ipfs://": "ipfs", "NewProtocol://": "driver-module-name"}'Load a driver:Create Osmosis instance by giving aurlandconfig_file_path(optional). Note that
config file is loaded from env varCONFIG_PATHif defined and takes precedence overconfig_file_pathIf a config file is used and has a value for themodule.pathoption, then
this path is used to load the osmosis driver regardless of theurlIf nomodule.pathis defined, the driver module is automatically determined from
theurlusing thedriver_mapas described aboveThe driver module name should follow the convention ofosmosis_<module-name>_driverCode styleThe information about code style in python is documented in these two linkspython-developer-guideandpython-style-guide.TestingAutomatic tests are setup via Travis, executingtox.
Our tests use the pytest framework.New VersionThebumpversion.shscript helps to bump the project version. You can execute the script using {major|minor|patch} as first argument to bump the version accordingly.LicenseCopyright 2018 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: osmosis-driver-interface-plus
osmosis-driver-interface💧 A membrane between the decentralized world and centralized worldoceanprotocol.comTable of ContentsCode styleTestingNew VersionLicenseCode styleThe information about code style in python is documented in these two linkspython-developer-guideandpython-style-guide.TestingAutomatic tests are setup via Travis, executingtox.
Our tests use the pytest framework.New VersionThebumpversion.shscript helps to bump the project version. You can execute the script using {major|minor|patch} as first argument to bump the version accordingly.LicenseCopyright 2018 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: osmosis-ipfs-driver
osmosis-ipfs-driver💧 Osmosis IPFS Driver Implementationoceanprotocol.comTable of ContentsSetupCode StyleTestingNew VersionLicenseSetupInstall the osmosis ipfs driver and set ipfs gateway envvarpipinstallosmosis-ipfs-driverexportIPFS_GATEWAY=https://gateway.ipfs.ioInstantiate an Osmosis instance and resolve an ipfs urlfromosmosis_driver_interface.osmosisimportOsmosisurl="ipfs://ZnOfotxMMnLTXCCW0GPVYT8gtEugghgD8Hgz"osm=Osmosis(url)# the proper osmosis driver is loaded automatically to match the url# Resolve the urldownload_url=osm.data_plugin.generate_url(url)Code StyleInformation about our Python code style is documented in thepython-developer-guideand thepython-style-guide.TestingAutomatic tests are setup via Travis, executingtox.
Our tests use the pytest framework.New VersionThebumpversion.shscript helps to bump the project version. You can execute the script using as first argument {major|minor|patch} to bump accordingly the version.LicenseCopyright 2019 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.