Saravanan666/pypi-org huggingface dataset:
Package: popcast
popcast: Long-term forecasts for pathogen populationsSee the methods ofHuddleston et al. 2020for more details or to cite this tool.Installpython3-mpipinstallpopcastUsageDownload seasonal influenza A/H3N2 data for model fitting.curl-LO"https://github.com/blab/flu-forecasting/raw/master/results/builds/natural/natural_sample_1_with_90_vpm_sliding/tip_attributes_with_weighted_distances.tsv"Fit a model using default 6 year training windows and 12-month forecasts.popcastfit\--tip-attributestip_attributes_with_weighted_distances.tsv\--outputlbi_model.json\--predictorslbiDevelopmentInstall locallypython3-mpipinstall".[test]"Lint and run testsLint code.flake8.--count--show-source--statisticsRun tests.cram--shell=/bin/bashtests/PublishInstall or upgrade publishing tools.python3-mpipinstall--upgradebuildtwineBuild the distribution packages.python3-mbuildUpload the distribution packages.python3-mtwineuploaddist/*
Package: popcatapiwrapper
An async API wrapper aroundpopcat-apiProject development has been paused till April, 2023Get started ||Documentationto get started, type this in your terminalpip install -U popcatapiwrapperor to install the main branchpip install -U git+https://github.com/Infernum1/PopCatWrapper(make sure you havegitinstalled)ExamplesFor a list of examples of each endpoint, take a look at theexamples directoryIf you plan to use the lib in a discord botimportdiscordimportPopCatWrapperclient=PopCatWrapper.PopCatAPI()bot=discord.ext.commands.Bot()@bot.command()asyncdefelement(element:str):#you can feed either the atomic number, symbol, or element nameimage=awaitclient.get_element_info(element)awaitctx.send(content=element.summary)these are just examples! it's upto you how you want to use this lib.AddInfernum#7041on discord for helpYou're welcome to make a Pull Request if you feel something can be improved :)
Package: popcoder
Python library for transcoding popcorn code into flat video filesInstallationpip install popcoderDevelopmentTo run the tests run:python setup.py testReleasesTo make a new release, increment the version number inpopcoder/__init__.pywhere the__version__variable is set.
Then push to master and wait forTravis CIto finish successfully
building. It will push a new release toPyPI.
Package: popcorngl
PopcornGLA Python module based on my custom graphics engine.This project is in open Alpha, and will improve depending on the attention it gets.RequirementsPython versions tested: 3.9.6Python modules needed:operatormathcopyHow to InstallTo install PopcornGL you need to run the commandpip install popcornglin your command prompt. If the command does not work, create an issue relating the problem and I'll see if I can help you.DocumentationClassesCamera(x_rotation, y_rotation, z_rotation, fov, center, distance)This class is responsible for the camera in the scene.Class Functions:rotate_x(amount): rotates the camera a certain amount on the X axis around the center of the scene.rotate_y(amount): rotates the camera a certain amount on the Y axis around the center of the scene.rotate_z(amount): rotates the camera a certain amount on the Z axis around the center of the scene.change_distance(amount): moves the camera further away from the object by a certain amount.Class Variables:x_rotation: the cameras rotation on the X axis.y_rotation: the cameras rotation on the Y axis.z_rotation: the cameras rotation on the Z axis.fov: the cameras fov. (not actually the FOV I just didnt know what else to call it)center: the center of the screen.distance: the distance from the object in the scene.Light(position, intensity, radius)This class is responsible for the lighting in the scene. It's not necessary if you're not going to use it.Class Variables:position: The position of the light in the scene.intensity: The intensity of the light.radius: The range of the light.Engine()This class is responsible for functions that do math.Class Functions:do_3d_math(points, camera): This function returns the X and Y values of the points with 3D coords passed in it.do_light_math(faces, points, light): This function returns the faces list with modification to the color based on the light.sort_faces(faces): This function returns a sorted list of faces based on the depth of them in the scene (for painter's algorithm).
Package: popcornnotify
The Popcorn Notify Python ClientThis the  Python client library forPopcorn Notify.
Popcorn Notify is a simple non-blocking API to send emails or text messages.frompopcornnotifyimportnotifynotify('5555555555','Long script has finished running.')notify('contact@popcornnotify.com','A new user signed up!',subject="Server Message")notify(['contact@popcornnotify.com','support@popcornnotify.com','5555555555'],'The server is on fire.')
Package: popcornshow
🍿🍿🍿 Popcorn Show CLI 🍿🍿🍿CLI with the objective of obtaining information about movies/series and people involved in production via the terminal.
Presenting the most relevant information directly on your terminal.TitleStreaming linkDatesCast/CrewTrailerIMDB ratingsSummaryAbility to navigate between people and works.InstallationpipinstallpopcornshowSearchMoviesShowsPersonciCommands to usepopcornshow [movie or series name] - Search for a list that matches the given text.popcornshow --year -y [2000] - Search for media released in a specific year.popcornshow --type -t [m] [s] - Search for media of a specific type. Movie or Series.popcornshow -l --luck - Return/choose the first option returned by the search.popcornshow -h - Show the default Help screen.on each screen, there might be a navigation optionAboutDocumentation onReadTheDocsApplication made 100% in PythonInformation obtained fromRealGoodThere is a more comprehensive version for Android:play.google.com/popcornshow
Package: popcorn-time
Popcorn Time API📝 CONTRIBUTIONSBefore doing any contribution readCONTRIBUTING.📧 CONTACTEmail:amng835@gmail.comGeneral Discord:https://discord.gg/dFD5HHaDeveloper Discord:https://discord.gg/rxNNHYN9EQ📥 INSTALLINGLatest PyPI stable releasepipinstallpopcorn-time⚙ HOW TO USEfrompopcorntimeimportPopcornTimepopAPI=PopcornTime()🤝 PARAMETERSCLASS PARAMETERSdebug: bool, optionalEnable for debug mode (Default: False)min_peers: int, optionalMinimum number of peers to select torrent (Default: 0)min_seeds: int, optionalMinimum number of seeds to select torrent (Default: 0)FUNCTION PARAMETERSFUNCTIONset_logging_levellevel: int, requiredSet the logging levelAccepted values:0: DEBUG1: INFO2: WARNING3: ERROR4: CRITICAL5: NOTSETFUNCTIONset_base_urlurl: str, requiredSet the base url for the APIFUNCTIONset_base_urlurl: str, requiredSet the base url for the APIFUNCTIONset_min_seedsvalue: int, requiredMinimum number of seeds to select torrentFUNCTIONget_server_statusReturns the server status in json formatFUNCTIONget_shows_statsReturns the show stats in json formatFUNCTIONget_shows_pagepage: (int, str), requiredReturns the shows page in json formatFUNCTIONget_movies_statsReturns the movies stats in json formatFUNCTIONget_movies_pagepage: (int, str), requiredReturns the movies page in json formatFUNCTIONget_showshow_id: (int, str), requiredIMDB ID of the showReturns the show data in json formatFUNCTIONget_moviemovie_id: (int, str), requiredIMDB ID of the movieReturns the movie data in json formatFUNCTIONget_random_showReturns the show in json formatFUNCTIONget_random_movieReturns the movie in json formatFUNCTIONget_best_torrenttorrents: dict, requiredThe dictionary of torrents provided by the API (get_show or get_movie)min_quality: int, optionalMinimum quality to select torrent (Default: '1080')revert_to_default: bool, optionalRevert to default item if no torrents are found (Default: False)Returns the best torrent is json formatFUNCTIONremove_cam_torrentstorrents: dict, requiredThe dictionary of torrents provided by the API (get_show or get_movie)Returns all the torrents without cam in json formatLegal NoticeThis SDK is not meant to be used for illegal purposes, use it at your own risk and check your local regulations first.
Package: popcornTimeApi
Popcorntime ApiLibrary to use the api of popcorntime in pythonGetting startedInstall the library from git withpip install popcornTimeApifrompopcorntimeapi.PopcornimportPopcornTimeApipopcorn=PopcornTimeApi()random_movie=popcorn.get_random()print(random_movie.title)How to update package(Python3 just to be sure)Update package version number insetup.pypython3.7 setup.py sdistpython3.7 -m twine upload dist/*
Package: pop-create
Create newpopprojects.Aboutpop-createwill initialize a newpopproject.Notepop-createwas originally an internal function of the pop project namedpop-seed.pop-create source codepop-create documentationWhat is POP?This project is built withpop, a Python-based
implementation ofPlugin Oriented Programming (POP). POP seeks to bring
together concepts and wisdom from the history of computing in new ways to solve
modern computing problems.For more information:Intro to Plugin Oriented Programming (POP)pop-awesomeGeting Startedpip3installpop-createNow that you have pop-create installed you can run:pop-createseed--helppop-createseed-npoppyThis initial release should have identical functionality aspop-seedas
currently provided by thepopproject.Dynamic Name SpacesYou can specify dynamic namespaces that your app will extend with “-d”.
In this example we extend the dynamic name spaces of “states”, “exec”, “acct”, and “tool”;
All common extensions of theidemproject.pop-createseed-npoppy-dexecstatesaccttoolVertically App Merged ProjectIf your entrypoint will exist in another project, then you are making a vertically app merged project.
For example, if you are extendingidemto write exec modules or states modules, your project won’t have an entrypoint.
The code of your project will be dynamically
extended on top of the namespace of those other tools.Create a vertically app merged project by adding the–verticalflag topop-create seedpop-createseed--vertical-npoppyTestsNow create the boilerplate code for your project’s tests.
This will set your project up with some useful fixtures for testing pop projects and some basic unit/integration tests.pop-createtests-npoppyDocsNow create the boilerplate code for your project’s docs.
This will set your project up with a rudimentary docs directory that can be easily added to and built.pop-createdocs-npoppyRun all core subparsersIf no subparser is specified, all the core subparsers (seed, cicd, docs, tests) will be run.pop-create-npoppy
Package: pop-create-idem
Aboutpop-create-idemis an extension ofpop-createthat creates boilerplate code for newidem-cloudprojects.pop-create-idemincludes code that transforms a CloudSpec dictionary into idem states, tools, and exec modules. Your uniquepop_createplugin’s purpose is to convert API documentation into the CloudSpec format.Note: It is recommended that you use a Python virtual environment when creating a new Idem provider plugin.Getting StartedBefore you start, ensure that you installed Python 3.8 or later. If you are running 3.7 or earlier, you might need to usepython3instead ofpythonin the commands in the rest of this tutorial.To verify your Python version, run the following command:python-VNext, create your virtual environment:python-mvenvenvsourceenv/bin/activateNow you should be in your new Python virtual environment.Update pipNext, update to the latest version ofpipinside your virtual environment:pipinstall-UpipInstall dependenciesNext, you need to installpop-create:pipinstallpop-createYou now have access to thepop-createcommand for creating Idem plugins.Install pop-create-idemInstallpop-create-idemwithpipfrom the project root:pipinstall-e{project_root}Next, installpop-create-idemwithpipfrom PyPi:pipinstallpop-create-idemGenerate an Idem Cloud pluginNow you are ready to run pop-create to generate an Idem plugin. You can generate a skeleton project
to write exec and state modules for your cloud manually or completely auto-generate your plugin based
on your cloud OpenAPI or Swagger specification.Skeleton pluginTo generate a new skeleton Idem Cloud plugin, run the following command:pop-createidem-cloud--directory/path/to/new/project--project-name=idem-{my_cloud}--simple_cloud_name={my_cloud}--author={company_name}This command creates a new project with the directory structure needed to get started with your plugin.SeeCreate Idem Provider Pluginfor information about developing an Idem plugin.Swagger specificationTo generate a new Idem plugin with a Swagger specification, run the following command:pop-createswagger--directory/path/to/new/project--specification={swagger-spec-yaml-or-accessible-swagger-spec-json-url}--project-name=idem-{my_cloud}--simple_cloud_name={my_cloud}--author={company_name}OpenAPI3 specificationTo generate a new Idem plugin project with an OpenAPI3 specification, run the following command:pop-createopenapi3--directory/path/to/new/project--specification={openapi3-spec-yaml-or-accessible-openapi3-spec-json-url}--project-name=idem-{my_cloud}--simple_cloud_name={my_cloud}--author={company_name}This command creates a new project with the boilerplate code needed to get started with each respective cloud provider.Next stepsAfter you generate your Idem plugin:Configure the plugin for your provider. See thequickstartfor instructions.Try the example Swagger petstore tutorialAuto-generate an Idem plugin from Swagger, which walks you through generating an Idem plugin with a Swagger specification.
Package: popdelta
PopDelta is a data mining library for Python, developed to process and analyze Pandas Dataframes, interchangeably referred to as Populations. The primary objective of PopDelta is to identify underlying patterns within the data. This library is suitable for characterizing frequent patterns in a single dataframe or comparing differences between two dataframes, which proves useful for tasks such as contrasting customer groups or analyzing values' temporal shifts through cohort comparisons.Possible applications for PopDelta:Discerning frequent co-occurring patterns within a single dataset.
Detecting patterns that differentiate purchasing customers from non-purchasing ones.Note: PopDelta was formerly called KDA (Key Driver Analysis).InstallationTo install PopDelta, execute the following pip command:pip install popdeltaUsagePopDelta incorporates built-in utilities for data cleaning, including handling missing data, rectifying data inconsistencies, and implementing One-Hot Encoding.PopDelta initialization parameters are: 1)target: the attribute utilized to "weight" the discovered data patterns, in the absence of a target, patterns will be “weighted” only based on their frequencies (row counts “a la” vanilla frequent itemset). 2)num_bins: bins for discretizing numerical attributes, and 3)string_attributes: a list of attributes that should be forced to string type (useful for ordinal attributes encoded in numerical format).After initializing PopDelta, the object can be used to iterate through the generator returned from theprocess_batchfunction. This function requires two parameters: 1)batches: a list containing one, or two depending on the use case, dataframes for comparison purposes, and 2)progressive: a Boolean flag indicating whether the data should be processed progressively in chunks (recommended for datasets exceeding 10000 rows).The user can compare datasets with not perfectly overlapping columns, as long as that intersection is not empty.ExampleThe expected usage and input are as follows (you can find more examples in the examples.ipynb notebook:Import pandas as pd
from popdelta.pop_delta import PopDelta

pd.set_option('mode.use_inf_as_na', True)
df = pd.read_csv("messy_dataset.csv")


over_40 = df[df[“age] > 40]
under_40 = df[df[“age] <= 40]

popDeltaW2 = PopDelta(target=”age”, num_bins=3, string_attributes=[])

for result in popDeltaW2.process_batch([over_40, under_40]):
display(result)In this example, PopDelta is utilized to analyze two datasets:over_40andunder_40. The target variable for weighting isage, with3bins for discretizing numerical attributes and no predefined string attributes (applicable for ordinal attributes encoded as numerics).
Package: popdf
👉项目官网：https://www.python-office.com/👈👉本开源项目的交流群👈📚简介popdf 是python自动化办公之Excel操作的第三方库。来自于开源项目：python-office，📘官网：https://www.python-office.com/。📦安装🍊pip 自动下载&更新pip install -i https://mirrors.aliyun.com/pypi/simple/ popdf -U📝功能已有功能的说明如下：序号方法名功能视频文档演示代码1add_watermarkPDF加水印播放查看打开2txt2pdfTXT转PDF文档查看打开3encrypt4pdfPDF加密文档查看打开4decrypt4pdfPDF解密文档查看打开5merge2pdf合并PDF文档查看打开6pdf2docx💻PDF 转 Word💻播放查看打开7pdf2imgsPDF 转 图片💻文档查看打开7pdf2imgsPDF 转 图片💻文档查看打开🏗️添砖加瓦本项目欢迎任何人参与开发，如果是小白，可以看一下开发教程👉如何参与开源项目？0基础入门：怎么打开GitHub？什么是issue？什么是PR？🐞提供bug反馈或建议提交问题反馈时，请务必填写和该项目本身有关的问题，不进行有关python学习，甚至是个人练习的知识答疑和讨论。Github issuegitee issue🧬贡献代码的步骤在Gitee或者Github上fork项目到自己的repo把fork过去的项目也就是你的项目clone到你的本地修改代码commit后push到自己的库登录Gitee或Github在你首页可以看到一个 pull request 按钮，点击它，填写一些说明信息，然后提交到master分支即可。等待程序员晚枫合并，＋微信说一声更好👉CoderWanFeng📌联系作者读者福利几个没有套路的福利，每天都可以领一次~
Package: popelines
PopelinesThis is a simple ETL tool for BigQuery, named for the author's surname.Popelines provides some basic functionality, such as writing to line-delimited JSON, writing to BigQuery, chunking dates, and other tools that are often needed when writing an ETL. It's sparse now, but I plan to expand it to include other Google Cloud functionalities.InstallTo install popelines:$pipinstallpopelinesUsageTo get started:importpopelinespope=popelines.popeline(dataset_id='',service_key_file_loc=None,directory='.',verbose=False)Providing adataset_idis required. Everything else is optional - a service key will be inferred from your GOOGLE_ACCOUNT_CREDENTIALS env variable if not provided inservice_key_file_loc, anddirectorydefaults to the current directory if not provided.Popelines does some big handy things like you might expect:# write a dict to line-delimited JSON, perfect for uploading to BQpope.write_to_json(file_name=file_name,jayson=your_dict,mode='w')# then you can turn around and upload that line-delimtited JSON...pope.write_to_bq(table_name=table_name,file_name=file_name,append=True,ignore_unknown_values=False,bq_schema_autodetect=False)# or you can write it to GCS! leave bucket_name=None and popelines# will try to upload to a bucket with the dataset_id you gave when you# first initialized your pope object!pope.write_to_gcs(gcs_path='folder/file.py',file_name='file.py',bucket_name=None)# you can even call your API endpoints! This method returns a dict of data.data=pope.call_api(url=url,method='GET',headers=None,params=None,data=None)Popelines also does small handy things:# get a logger at your chosen verbosity and use it to log thingslog=pope.loglog.info('Does the code get to this point?')# chunk a date range into chunks n-days largestart_datetime=datetime.datetime(2018,3,1)end_datetime=datetime.datetime(2018,9,1)fordayinpope.chunk_date_range(start_datetime=start,end_datetime=end,chunk_size=1):print(f"I think I may have been drunk on{day}, can you name another date?")# find the last entry in a table - basically, query for the MAX() of a columnlatest_day=pope.find_last_entry(table_name='my_table',date_column='day')Finally, Popelines even does weird experimental things:# messed up JSON keys? fix_json_keys takes your dict obj and a callback# function and applies the callback to each key recursively!my_good_json=pope.fix_json_keys(obj=my_bad_json,callback=key_fixing_function)# if your JSON values are messed up, have no fear! There is a similar# function for that!my_good_json=pope.fix_json_values(obj=my_bad_json,callback=value_fixing_function)Note thatkey_fixing_functionshould take one argument (the key) whilevalue_fixing_functionmust handle both a value and a key as arguments.
Package: popen
popenWhat is it?Thepopenpackage provides a simple shell-like syntax inside python for running
external commands.Features:Chaining (aka. piping) asSh('ls')| 'sort'Redirect stderr to stdout asSh('make').include_stderr| 'wc'Redirect output to file asSh('ls')>'~/listing.txt'Iteration over output lines asfor line inSh('ls'):Streaming input into commands in the chain asSh.pipe('~/listing.txt').Sh('grep','-q','code').returncodeExpands special characters (~*!?)Expands env vars ($HOME) asprintSh('ls','$USER','~/*')Properly splits strings ('echo "hole in one"'becomes['echo', 'hole in one'])Or iterable arguments (Sh('ls','-l')| ['wc','-l']> '/dev/null')TL;DRInstallation:pipinstallpopenExample:frompopenimportShforlineinSh('du','~/')|'head -n 10'|'sort -n':print('GOT',line)UsageSimples usage, run a command and iterate the output lines:frompopenimportShforlineinSh('ls','-la','~'):printlinePiping that output to a file:Sh('ls','-la','~')>'~/listing'Note that special characters like~are expanded, as are environment
variables (e.g.$HOME).Chaining commands is trivial, here with append instead of write to file:Sh('ls')|Sh('sort')>>'~/listing'But the right hand side of|can be very flexible, as it employs
lexical splitter on string input or takes an iterable:Sh('ls','-la','~')|'sort -c'|['uniq','-c']|'tail'|Sh('wc')>'~/listing'To run a command and let output go tostdout, ask for the return code:cmd=Sh('ls')|'grep polka'printcmd.returncodeTo pipe a string into a command, wrap in an iterable:printSh.pipe(['this is a\nmulti line\nstring.'])|'wc'
Package: p-operators
Novigi Custom Airflow OperatorsThis Repo contains custom airflow operators which were writen by Novigi Pty LtdVersion No - 1.0Bitbucket Link -https://Prasadi1994@bitbucket.org/novigi/novigi_operators.gitHow do I get set up?Summary of set upConfigurationDependenciesDatabase configurationHow to run testsDeployment instructionsContribution guidelinesWriting testsCode reviewOther guidelinesWho do I talk to?Repo owner or adminOther community or team contact
Package: popEtl
|PyPI version| |Docs badge| |License|******popEtl******popEtl created for modeling and implementing any data integration project- if it is small or large amount of data,relational database or cloud APIs, Sql or no sql, data cleansing or modeling algorthims - popEtl aims to give asingle platfrom that can model any data strucure, load data from one source to another and be able to maintain allrequired changes that any integration project deal in fast and clean mannerThe project started to be build becouse we are lazy and we like automation any we hate mainatance !!Read more about popEtl at http://www.biSkilled.com (marketing) or at `popEtl documnatation <https://readthedocs.org/projects/popeye-etl/>`_Installation===========`download from GitHub <https://github.com/biskilled/popEtl>`_ or intall by using ``pip``Roadmap=======We would like to create a platfrom that will enable to design, implement and maintance and data integration project such as:* Any REST API connectivity from any API to any API using simple json maping* Any Relational data base connectivity using json mapping* Any Non relational storage* Main platfrom for any middleware business logic - from sample if-than-else up to statistics algorithms using ML and DL algorithms* Enable Real time and schedlued integrationWe will extend our connectors and Meta-data manager accordingly.Cuurent supporting features===========================* APIs       : salesforce* RMDBs      : sql-server, access, oracle, vertice, mySql* middleware : column reansformation and simple data cleansing* DBs        : mongoDb* Batch      : Using external scheduler currentltly .....* onLine     : Needs to be implemented .....Authors=======popEtl was created by `Tal Shany <http://www.biskilled.com>`_(tal@biSkilled.com)We are looking for contributions !!!License=======GNU General Public License v3.0See `COPYING <COPYING>`_ to see the full text... |PyPI version| image:: https://img.shields.io/pypi/v/popEtl.svg:target: https://github.com/biskilled/popEtl.. |Docs badge| image:: https://img.shields.io/badge/docs-latest-brightgreen.svg:target: https://readthedocs.org/projects/popeye-etl/.. |License| image:: https://img.shields.io/badge/license-GPL%20v3.0-brightgreen.svg:target: COPYING:alt: Repository License