Saravanan666/pypi-org huggingface dataset:
Package: occasionally
occasionallyA task scheduler and executioner for python 2.7 and 3+ using only the stdlibSome environments are constrained, for example, an environment with no internet access. When developing for environments like this, the standard lib is the only tool you have to work with.This package has two main classes that you will want:ocassionally.tasks.Taskis a container for describing tasks. It takes a callable function (and its args and kwargs), and a frequency function to determine how often it should be called.Theocassionally.scheduler.Schedulerclass runs these Tasks at their set interval, backed by a priority queue. This queue calls a task when it is time, and reschedules it uses the Task'sfrequency_functionto determine time until next call.For example:fromocasionally.taskimportTaskfromocassionally.schedulerimportSchedulerfromocasionally.time_helperimportafter_x_minutesdefclean_db():# get rid of temp users that are created to trial the app. this is pseudo codewithMyDbConnection()asdb:db.Execute("DELETE FROM users WHERE temp_user = 1 AND logged_out = 1")db_cleaner=ocassionally.task.Task(clean_db,after_x_mintes(5))# makes a task that cleans the db every 5 minutesScheduler.add_task(db_cleaner)# adds the task to the schedulerScheduler.foreground()# start the scheduler running in foreground mode (main thread)ContributingSince this package only relies on stdlib functionality, setup is pretty easy. On Linux:1.) Setup virtual env (virtualenv env).2.) Activate virtual env (source env/bin/activate).3.) Run./run_tests.shto run the tests and install the package in your virtualenv.4.) Edit code in theoccasionallyfolder, and make sure you the tests still pass with./run_tests.sh!5.) Code is documented with the Google python style guide (https://google.github.io/styleguide/pyguide.html) and tests are implemented in pytest.
Package: occasion-analysis-package
Installation:pip install occasion-analysis-packageGet started:Description:Python package to do analysis on Occasion.Long Description:This package consist of 3 functions: export sql data to csv(export_data_to_csv), create word cloud(create_word_cloud), create emoji chart(create_emoji_chart).export_data_to_csv(export_file_path):The function will export data based on SQL query into csv file.
You can connect to Database either via credentials.env file or through environment variables.
Either use VPN or make sure your IP is whitelisted.
For data loading via credentails file create a file named: "credentials.env" which has database credential details in following format:DATABASE = 'database_name'USER = 'user_name'PASSWORD = 'password'HOST = 'host'PORT = 'port_number'This function will ask for Database connection input: 1. Credentials 2. Environmental.This function will ask for Occasion Input. Like Mother's Day, Father's Day, Christmas.Parameters:export_file_path (string):File Path to export the data with file name.create_word_cloud(import_file_path):The function will create Word Cloud using Document Term Matrix.
Later you will be asked to enter stop word list.Parameters:import_file_path (string):File Path to export the data. There should be two columns in the file: "use_case", "all_text". File name should be .csv extension.create_emoji_chart(import_file_path):The function will create Emoji Frequency Chart.Parameters:import_file_path (string):File Path to export the data. There should be two columns in the file: "use_case", "all_text". File name should be .csv extension.Example:from occasion_analysis_package import export_data_to_csv, create_word_cloud, create_emoji_chartexport_data_to_csv("D:\\Analysis\\Occasion Analysis\\test\\occasion.csv")create_word_cloud("D:\\Analysis\\Occasion Analysis\\test\\occasion.csv")create_emoji_chart("D:\\Analysis\\Occasion Analysis\\test\\occasion.csv")
Package: occe-api
occe_api_v3Occe.ioAPI v3 python wrapperДокументация | DocumentationТелеграм | TelegramПримеры использования находятся в example.py,не забудьте указать свои API ключи в файле .envThe usage examples are at example.py file,don't forget to specify your API keys in the file .envЕсли это полезно, вы можете сделать пожертвованиеIf it useful you can make a donationUSDT:TRX-20: TJnXcu7XS5LCDMVG4XKYnVFgchUmmz24SSBEP-20: 0x855e3d62917e755464a1ae54f9d89831542fea9bALTS:TRX: TJnXcu7XS5LCDMVG4XKYnVFgchUmmz24SSVQR: VQRgRevcdPYbtxQE3Lhsm6rYnnnRk1tgr9x9UFO: Uf9cegWUWTYAx3Y9M6fbCF7JfWmA4ZHVPRKRB: KhZnQRWPaVLiMqJPoULSDzPGMeqp5invzi4iVYmArnCTd1UiQU6CjgZVm5Xu2uFBTqTgqxjzTMJpGci7sR1fznpfT4kGPWm
Package: oc-chess-club
oc_chess_club:books: Made for anOpenClassroomsstudies project.oc_chess_club manages tournaments and players for a chess club.Have a look at thedocumentationDemoDependenciesMain dependencies aretyperfor the CLI part andTinyDBfor the lightweight database.You will needPython 3.9+as the project type hints generics from standard collections. (SeePEP 585)Installation:penguin: Linux / :apple: macOSpython3 -m venv envsource env/bin/activatepython3 -m pip install oc-chess-club:framed_picture: Windowspy3 -m venv env.\env\Scripts\activatepy3 -mpip install oc-chess-clubUsageTo start the CLI, simply type:python3 -m oc_chess_clubTo learn more, please refer to thedocumentation(:fr:).Flake8To generate a Flake8 HTML report you will needflake8andflake8-html. Both are present in this project's dev dependencies.Then, go to project's main directory and type:python3 -m flake8 --format=html --htmldir=docs/flake-reportLicenseThis project is licensed under the terms of the MIT license.
Package: occi
Version:0.6Synopsisoccy-pyis a generic library implementation of the Open Cloud Computing
Interface.The Open Cloud Computing Interface (OCCI) comprises a set of open
community-lead specifications delivered through the Open Grid Forum. OCCI is a
Protocol and API for all kinds of Management tasks. Seehttp://occi-wg.org/.Theocci-pylibrary is a complete implementation of the OCCI specification
and supports version 1.1 of the OCCI RESTful Protocol.The aim ofocci-pyis to provide a high-level interface for easy integration
of the OCCI Standard Protocol into both new and existing applications.FeaturesEasy to use. Implement the 5 required ServerBackend methods and you are
ready to go.Pluggable HTTP server front-end. ATornadofront-end is included.Focused on robustness and standard compliance.Supports all Content Types defined by the OCCI HTTP Rendering specification
and all of the OCCI Infrastructure Kind/Mixin definitions.Easy to extend with custom Entity types as outlined in the OCCI Core specification.InstallationYou can installocci-pyeither via the Python Package Index (PyPI)
or from source.To install usingpip:$ pip install occiTo install usingeasy_install:$ easy_install occiIf you have downloaded a source tarball you can install it
by doing the following,:$ python setup.py build
# python setup.py install # as rootOCCI ServerTo enable OCCI server support in your application you must implement theocci.server.ServerBackendclass. See the stub method documentation for
further information.IaaS DemoA demo implementation of the OCCI Infrastructure specification is provided byocci_iaas_demo.pyscript. The demo uses theTornadofront-end and thus
requires theTornadoframework to be installed.To start the demo installocci-pyand run:$ occi_iaas_demo.pyYou will then have an OCCI server listening to port 8000 on localhost. To use a
different base URL specify the –base_url option, e.g.:$ occi_iaas_demo.py --base_url http://www.example.com:8000/api/OCCI ClientsoonStatusTheocci-pylibrary is fairly stable but it is still under development and
subject to internal API changes.ARedisbackend is in the works and will provide a better example on how to
use the library in real applications.Bug trackerIf you have any suggestions, bug reports or annoyances please report them
to our issue tracker athttp://github.com/nyren/occi-py/issues/ContributingDevelopment ofocci-pyhappens at Github:http://github.com/nyren/occi-pyYou are highly encouraged to participate in the development. If you don’t
like Github (for some reason) you’re welcome to send regular patches.LicenseThis software is licensed under theGNU Lesser General Public License (LGPL)
version 3. See theLICENSEfile in the top distribution directory for the
full license text.
Package: occiput
Tomographic reconstruction software for PET, PET-MRI and SPECT in 2D, 3D (volumetric) and 4D (spatio-temporal) in Python.The software provides high-speed reconstruction using Graphics Processing Units (GPU).
Note: an NVidia CUDA compatible GPU is required.Occiputcan be utilized with arbitrary scanner geometries. It provides production quality image reconstruction
with standard algorithms (such as MLEM and OSEM) and implements advanced algorithms for motion correction,
kinetic imaging and for multi-modal reconstruction.The source code contains Jupyter notebooks with examples.A Python package implementing the interface to theSiemens Biograph mMRPET-MRI scanner
is available upon request and following authorization from Siemens. Please email us atocciput.reconstruction@gmail.comInstallationLinux, Windows (not tested recently), MacOSPre-requisites:OcciputrequiresNVidia GPU Drivers`, ``NVidia CUDAand theNiftyRecGPU accelerated tomographic ray-tracing library.Install NVidia GPU Drivers and CUDAInstall NiftyRec librariesMake sure that CUDA libraries and NiftyRec libraries are in the system path:Linux:export LD_LIBRARY_PATH:$LD_LIBRARY_PATH:/path_to_cuda_libraries:/path_to_niftyrec_librariesMacOS:export DYLD_LIBRARY_PATH:$DYLD_LIBRARY_PATH:/path_to_cuda_libraries:/path_to_niftyrec_librariesWindows:setx path “%path%;c:/path_to_cuda_libraries:/path_to_niftyrec_libraries;”InstallOcciput:git clonehttps://github.com/spedemon/occiput.gitpython setup.py build installGetting startedExamples and demos of the features of Occiput are in the /occiput/notebooks folder.
To get started, installPython Jupyterand open the scripts in/occiput/notebooksWebsiteFor more information seeocciput.io.
Package: occli
Occli is a command line tool that queries theOpen Corporates Databaseand returns data on corporations under the copyleft Open Database License.InstallationClone from Githubgit clone https://github.com/rly0nheart/occli.gitcd occlipython setup.py sdist bdist_wheelpip install dist/occli-[version.tag]-py3-none.whlInstall from PyPIpip install occliUsageoccli 'query'Updatingpip install --upgrade occliOptional ArgumentsOptionArgumentUsage-o/--outputpath/to/filewrite output to a specified file-c/--countnumber of results to return (1-30) (default: 30)-v/--verboseenable verbosityNoteOccli is in no way affiliated with Open Corporates. This project only uses their public API, therefore, user privacy policies and terms of service will be applied as provided byOpen Corporatesitself.LICENSE
Package: occmodel
occmodelis a small library which gives a high level access
to the OpenCASCADE modelling kernel.For most users a direct use of the OpenCASCADE modelling
kernel can be quite a hurdle as it is a huge library.The geometry can be visualized with the included viewer.
This viewer is utilizing modern OpenGL methods like GLSL
shaders and vertex buffers to ensure visual quality and
maximum speed. To use the viewer OpenGL version 2.1 is
needed.In order to complete the installation OpenCASCADE must be installed
on the system. Check the home page or the README file for details.
Package: occupiedgpus
Occupied GPUThe program used to occupy GPUs.Preparationpipinstall-rrequirements.txtUsageTo occupy the corresponding GPUs, run:shtrain.sh0,1,2,3orchmoda+x./train.sh
./train.sh0,1,2,3where0,1,2,3is the required format.Note:if you want to run the code in the background, run:nohupshtrain.sh${GPU_IDS}>>output.log2>&1&
Package: occuprob
OccuProbOccuProb is a tool for calculating occupation probabilities and ensemble-averaged properties via the superposition approximation.QuickstartInstallationThe latest stable release can be installed via pip:pip install occuprobUsageOccuProb can be used as an API or through its basic command-line interface (CLI).The detailed documentation including examples can be found athttps://occuprob.readthedocs.io/ReferencesOccuProb is based on the following works:[1] Wales, D.
Properties of the Landscape. InEnergy Landscapes: Applications to Clusters, Biomolecules and Glasses;
Cambridge Molecular Science; Cambridge University Press: Cambridge, 2004; pp 364–433.10.1017/CBO9780511721724.008[2] Zhai, H.; Alexandrova, A.N.Ensemble-Average Representation of Pt Clusters in Conditions of Catalysis Accessed through GPU Accelerated Deep Neural Network Fitting Global Optimization.Journal of Chemical Theory and Computation, 2016, 12, 6213–6226.10.1021/acs.jctc.6b00994[3] Gálvez-González, L.E.; Posada-Amarillas, A.; Paz-Borbón, L.O.Structure, Energetics, and Thermal Behavior of Bimetallic Re–Pt Clusters.The Journal of Physical Chemistry A, 2021, 125, 4294–4305.10.1021/acs.jpca.0c11303CopyrightCopyright (c) 2021-2022, Luis Galvez
Package: occuspytial
OccuSpytialA package for fast bayesian analysis of spatial occupancy models. OccuSpytial implements
several samplers for the single season site spatial occupancy model using the Intrinsic Conditional Autoregressive (ICAR) model for spatial random effects.UsageFor usage examples refer to the project'sdocumentation.InstallationThe package can be installed usingpip.pipinstalloccuspytialAlternatively, it can be installed from source usingpoetrygitclonehttps://github.com/zoj613/OccuSpytial.gitcdOccuSpytial/
poetryinstallNote that installing this way requires thatCythonis installed for a successful build.TestingTo run tests after installation, the packagepytestis required. Simply run
the following line from the terminal in this package's root directory.python-mpytestIf all tests pass, then you're good to go.LicensingOccuSpytial is free software made available under the BSD License. For details
see theLICENSEfile.
Package: ocdb
Optical constants for elements and various materials in the EUV and VUV wavelengths.Welcome! This is ocdb, aPython packagefor easily accessing the X-ray/EUV/VUVscattering and absorption datacontained in theOptical Constants Database (OCDB)provided by the German National Metrology Institute, thePhysikalisch-Technische Bundesanstalt, PTB.FeaturesA list of (planned) features:Access to X-ray/EUV/VUV scattering and absorption coefficients (nandk)Interface compatible to theperiodictable Python packageProvides dataanduncertaintiesFAIR and linked data: citable, reliable, and reproducibleCommunity-driven: easy to contributeAnd to make it even more convenient for users and future-proof:Open source project written in Python (>= 3.9)Developed fully test-drivenExtensive user and API documentationInstallationTo install the ocdb package on your computer (sensibly within a Python virtual environment), open a terminal (activate your virtual environment), and type in the following:pip install ocdbLicenseThis program is free software: you can redistribute it and/or modify it under the terms of theGPLv3 License. See the fileLICENSEfor more details.
Package: ocdc
Obsessive-Compulsive Development Changelogsocdcis a changelog formatter for "people", neat freaks, and sloppy typists.The format is based onKeep a Changelog,
with some slight modifications:Lines are wrapped at 90 characters.Version sections are separated by two blank lines to aid visual scanning.Square brackets are not used in titles. Changelogs aren't programming
languages, so why throw in weird symbols like that?Installation$pipinstallocdcUsageTo formatCHANGELOG.mdin the current directory, runocdcwithout arguments.
You can also pass a custom path.$ocdc[--pathCHANGELOG.md]To checkCHANGELOG.mdwithout modifying the file, use--check.$ocdc--check[--pathCHANGELOG.md]To create a newCHANGELOG.md, use thenewsubcommand.$ocdcnew[--force]For a description of all options, use--help.$ocdc--helpConfigurationConfiguration is for the weak-willed. There shall be only one true format.DisclaimerThis thing is new, and it might eat your changelog! Back up your files (in git)
before tryingocdc.
Package: ocds-api.client.python
ocds-api.client.pythonApythondata retrieving and synchronization client for the OCDS API.InstallationSimply run from command line:pip install ocds-api.client.pythonUsageRetrievefromocds_client.clientsimportRecordClientclient=RecordClient('http://')To get a singlerecordbyociduse methodget_record:record=client.get_record('ocid')To get multiplerecordsbypage iduse methodget_records:records=client.get_records({'size':n,'page':'page id'})Similar actions can be taken with the client forReleases.fromocds_client.clientsimportReleaseClientUse methodsget_releaseandget_realeses.SynchronizationTo synchronize, useSyncClientwhen initializing theOCDS API hostand the resource to synchronize with.fromocds_client.syncimportSyncClientclient=SyncClient('http://','record')forrecordinclient.get_resource_items():# do smth with record
Package: ocdsextensionregistry
This Python package eases access to information about extensions in theOpen Contracting Data Standard’sextension registry.It includes Python classes for programmatic access, as well as a suite of command-line tools which can:download any versions of extensionsgenerate POT files (message catalogs) from extension files, as part of a translation worlflowgenerate a data file in JSON format, that provides all the information about versions of extensionsThe basic package includes only the Python classes for programmatic access:pipinstallocdsextensionregistryTo install the command-line tools,follow these instructions.If you are viewing this on GitHub or PyPI, open thefull documentationfor additional details.
Package: ocdskit
A suite of command-line tools for working with OCDS data to:create compiled releases, versioned releases and record packagesupgrade from an old version of OCDS to a new versiondetect the format of an OCDS filewrap releases in a release package, or records in a record packagecombine small packages into large packagessplit large packages into small packagesgenerate a spreadsheet version of a JSON schemaTipWant todownload OCDS data? Use theOCP Data Registry.If you are viewing this on GitHub or PyPI, open thefull documentationfor additional details.
Package: ocdsmerge
This Python package creates records that conform to theOpen Contracting Data Standard. Specifically, it provides classes for merging OCDS releases with the same OCID into either a compiled release or a versioned release (collectively called “merged releases”), as described in theOCDS documentation.Instead of using this library directly, it is easier to create merged releases using either:OCDS Kit’scompilecommand-line toolOCDS Kit’smergePython functionOCDS Toucan’scompile releasesweb applicationIf you are viewing this on GitHub or PyPi, open thefull documentationfor additional details.
Package: ocean-data-gateway
ocean_data_gatewayYour gateway to ocean data.Project based on thecookiecutter science project template.InstallationInstall the package plus its requirements from PyPI with$pipinstallocean_data_gatewayor fromconda-forgewith$condainstall-cconda-forgeocean_data_gatewayClone the repo:$gitclonehttps://github.com/axiom-data-science/ocean_data_gateway.gitIn theocean_data_gatewaydirectory, install conda environment:$condaenvcreate-fenvironment.ymlFor local package install, in theocean_data_gatewaydirectory:$pipinstall-e.To also develop this package, install additional packages with:$condainstall--filerequirements-dev.txtTo then check code before committing and pushing it to github, locally run$pre-commitrun--all-files
Package: oceandb-bigchaindb-driver
[![banner](https://raw.githubusercontent.com/oceanprotocol/art/master/github/repo-banner%402x.png)](https://oceanprotocol.com)# oceandb-bigchaindb-driver> 🐳 Ocean DB [BigchainDB](https://www.bigchaindb.com/) driver (Python).> [oceanprotocol.com](https://oceanprotocol.com)[![Travis (.com)](https://img.shields.io/travis/com/oceanprotocol/oceandb-bigchaindb-driver.svg)](https://travis-ci.com/oceanprotocol/oceandb-bigchaindb-driver)[![Codacy coverage](https://img.shields.io/codacy/coverage/be42a51b898e46c7b7c2531d49a4e1ac.svg)](https://app.codacy.com/project/ocean-protocol/oceandb-bigchaindb-driver/dashboard)[![PyPI](https://img.shields.io/pypi/v/oceandb-bigchaindb-driver.svg)](https://pypi.org/project/oceandb-bigchaindb-driver/)[![GitHub contributors](https://img.shields.io/github/contributors/oceanprotocol/oceandb-bigchaindb-driver.svg)](https://github.com/oceanprotocol/oceandb-bigchaindb-driver/graphs/contributors)---## Table of Contents- [Features](#features)- [Quick-start](#quick-start)- [Environment variables](#environment-variables)- [About BigchainDB plugin implementation](#about-bigchaindb-plugin-implementation)- [Code style](#code-style)- [Testing](#testing)- [License](#license)------------|------------**C**reate | **C**reate**R**ead   | **R**etrieve**U**pdate | **A**ppend**D**elete | **B**urnYou can find [here](https://blog.bigchaindb.com/crab-create-retrieve-append-burn-b9f6d111f460) a link talking about the CRAB model.## Search capabilitiesTake in account that BigchainDB is not thought to have a great search/query capabilities. At the moment we add two methods,one allow you to do queries directly to MongoDB and the other do text search queries. This could be a bit unstable, becauseis base in a new functionality that is not exposed in the last BigchainDB release. In this repo you can find more informationabout the query capabilities of BigchainDB https://github.com/bigchaindb/ethereum-integration/tree/master/poc3/query-engine.## Code styleThe information about code style in python is documented in this two links [python-developer-guide](https://github.com/oceanprotocol/dev-ocean/blob/master/doc/development/python-developer-guide.md)and [python-style-guide](https://github.com/oceanprotocol/dev-ocean/blob/master/doc/development/python-style-guide.md).## TestingAutomatic tests are setup via Travis, executing `tox`.Our test use pytest framework.## License```Copyright 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 athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.# Changelog## 0.1.0 (2018-05-31)* First release on PyPI.
Package: oceanengine
oceanengine介绍巨量引擎接口封装工具集，含广告回传功能巨量各系统地址：巨量引擎官网 https://oceanengine.com/?source=nav_portal
巨量纵横 https://business.oceanengine.com/?source=nav_portal
巨量广告平台 https://ad.oceanengine.com/?source=nav_portal
巨量开放平台 https://ad.oceanengine.com/openapi/index.html?source=nav_portal
群峰服务市场 https://fuwu.oceanengine.com/?source=nav_portal
巨量学 https://school.oceanengine.com/?source=nav_portal
巨量星图 https://star.toutiao.com/?source=nav_portal
巨量创意 https://cc.oceanengine.com/?source=nav_portal
巨量算数 https://trendinsight.oceanengine.com/?source=nav_portal
穿山甲 https://www.pangle.cn/?source=nav_portal
DOU+ https://doujia.douyin.com/delivery?dou_plus_compaign_name=DOU%2B+id%3A+5819&dou_plus_content=%7B%22version%22%3A%22v2%22%7D&dou_plus_medium=oceanengine-channel&dou_plus_medium_id=pc-page-button&dou_plus_source=site&dou_plus_sub_source=inside_media
企业号 https://renzheng.douyin.com/api/welcome/?fiji_source=nav_portal
星图即合 https://www.xingtu.cn/landing?site=creative&utm_source=creative_oceanengine&utm_medium=product_matrix
巨量引擎方舟 https://agent.oceanengine.com/软件架构oceanengine.ad说明：host为 ad.oceanengine.com 的接口oceanengine.ad_postback说明：广告回传功能封装oceanengine.business说明：host为 business.oceanengine.com 的接口oceanengine.e说明：host为 e.oceanengine.com 的接口安装教程pip安装pip3installoceanenginepip安装（使用阿里镜像加速）pip3installoceanengine-ihttps://mirrors.aliyun.com/pypi/simple使用说明demoimportoceanenginetest_res=oceanengine.ad.promote_ad_list(cookie='cookie',csrf_token='token',aadvid='')