Saravanan666/pypi-org huggingface dataset:
Package: paper
Keep generated fields in cache for your Django models.UsageYou have two options:@paperwill help you to create a calculated field that is stored in
Django’s cache, and@cardboardwill create a regular field in your model and update it in
database automatically.@paperJust like the@propertydecorator, you just need to use the@paperdecorator, that will
transform a method of your class into a cached property.classModelA(models.Model):name=models.TextField()@paper(1,[('testpaper.ModelB',lambdai:ModelA.objects.filter(children=i)),])defcount(self):returnModelA.objects\.filter(pk=self.pk)\.annotate(count=Coalesce(Sum('children__count'),0))\.values_list('count',flat=True)[0]classModelB(models.Model):parent=models.ForeignKey('ModelA',related_name='children')count=models.IntegerField()@papertakes 2 arguments:The method’s version number, in case you want to change the format of what is returned. By
example, imagine you’re returning a complex denormalized data structure. If at some point you
want to add some data in it, you can simply bump the version number and it will invalidate the
caches automatically.A list of model/lister couples.
- The model is either a model class, either an ‘app.Model’ string
- The lister takes a single argument which is an instance of the updated model (here a ModelB
objet) and returns a list of affected objects to invalidate (here a queryset of ModelA objects).The value will be cached using Django’s default cache. Please note that this requires the cache to
be shared across all your web worker instances, otherwise invalidation won’t have any the intended
effect.Invalidation is based on Django signals, so it requiressave()ordelete()to be called in
order to work correctly. Bulk/SQL operations won’t be detected automatically.@cardboardUse is very similar to@paper, the main differences being the absence of versioning and the fact
that result is going to be stored in the model itself instead of caching it.classModelA(models.Model):name=models.TextField()@cardboard(models.IntegerField(default=0),[('testpaper.ModelB',lambdai:ModelA.objects.filter(children=i)),])defcount(self):returnModelA.objects\.filter(pk=self.pk)\.annotate(count=Coalesce(Sum('children__count'),0))\.values_list('count',flat=True)[0]classModelB(models.Model):parent=models.ForeignKey('ModelA',related_name='children')count=models.IntegerField()@cardboardtakes two arguments:The field that will be used to store results. You have to give it a sensible default value,
because no calculation will be made upon object creation. Calculation are only triggered by thedependenciesfunctions.A list of dependencies, just like in@paper.The same remark goes for this technique beingsave()/delete()driven: bulk or SQL operations
won’t trigger recalculation.LicenceThis software is licenced by ActivKonnect under the terms of the WTFPL.
Package: paper-animator
paper-animatorAnimate the progression of your version-controlled paper <3Installationpip install paper-animatoror from source, with poetrygit clone https://github.com/sneakers-the-rat/paper-animator
cd paper-animator
poetry installUsageSimplest case, just point it to a .pdf file in some git repository :)paper-animator /some/repo/paper.pdfThat method uses the .pdf checked in for each commit in themainbranch.
If you point it to a .tex file, it will attempt to build it for you! (experimental)paper-animator /some/repo/paper.tex --latex_builder pdflatexUse a repo that's not local! Give the file as a path relative to the rootpaper-animator subdirectory/paper.pdf --repo https://github.com/username/example_repo --branch mainSeepaper-animator --helpfor all options -- note that for arguments that are tuples, you must
pass them individually, egpaper-animator --grid_shape 6 4to pass a grid shape of(6, 4)$ paper-animator --help
usage: paper-animator [-h] [--output OUTPUT] [--repo REPO] [--branch BRANCH] [--tmp_dir TMP_DIR] [--latex_builder {pdflatex,xetex}] [--frame_duration FRAME_DURATION] [--video_fps VIDEO_FPS]
                      [--resolution RESOLUTION] [--grid_shape GRID_SHAPE] [--dont_cleanup]
                      input

Convert a version controlled paper to a video!

positional arguments:
  input                 Input file, a .pdf or .tex file!

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT       Output video file, if absent, input with .mp4 extension, default: None
  --repo REPO           URL to a git repository to clone, if absent, get repo from input file, default: None
  --branch BRANCH       Which branch to use, default: main
  --tmp_dir TMP_DIR     Temporary directory to use, otherwise create one in ~/, default: None
  --latex_builder {pdflatex,xetex}
                        if input is a latex file, which builder to use with latexmk, default: pdflatex
  --frame_duration FRAME_DURATION
                        Duration (in s) to show each commit, default: 1
  --video_fps VIDEO_FPS
                        fps of output video, default: 30
  --resolution RESOLUTION
                        Resolution of plots, default: (1920, 1080)
  --grid_shape GRID_SHAPE
                        Manually override (rows,cols) of figure layout, default: None
  --dont_cleanup        Delete temporary folder after completionChangelog0.0.2Fixing taking tuple-based command line arguments!subdirswas created in the wrong spot inanimate.plot_img_dirs!
Package: paperbnf
paperbnfpip install paperbnf2.Maybe the most simpest way to write pretty BNF in LaTex.importpaperbnfprint(paperbnf.parse("""<nonterm> ::= term !escapeterm! | !|!| <nonterm>description <nonterm> ::= term !escapeterm! | !|!| <nonterm>"""))P.S: Remember to place a new line in the end of the file, this is a must(I made this to avoid unexpected line end by force).
Package: paper-color
Run the following script to installpaper_color:pip install paper-colorGet the color in your python program usingpaper_color:frompaper_colorimportpaper_colorpaper_color.get_color()# ['#3366FF', '#6AB520', '#0CA6FF', '#FFBF1E', '#FF4E2B']You can also get a ladder color array:frompaper_colorimportpaper_colorcolors=paper_color.ladder_colors(html_color='#31655f')# ['#000000', '#040a09', '#091413', '#0e1e1c', '#132826', '#18322f', '#1d3c39', '#224642', '#27504c', '#2c5a55', '#31655f', '#45746f', '#5a837f', '#6e938f', '#83a29f', '#98b2af', '#acc1bf', '#c1d0cf', '#d5e0df', '#eaefef', '#ffffff']
Package: paperdl
Documents:https://paperdl.readthedocs.io/PaperdlSearch and download paper from specific websites.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.Support ListSourceSupport Search?Support Download?scihub✗✓baiduwenku✗✓arxiv✓✓googlescholar✓✓InstallPip installrun "pip install paperdl"Source code install(1)Offline
Step1:gitclonehttps://github.com/CharlesPikachu/paperdl.git
Step2:cdpaperdl->run"python setup.py install"(2)Online
run"pip install git+https://github.com/CharlesPikachu/paperdl.git@master"Quick StartCalling APIIf you want to search and download papers from arxiv and google scholar, you can write codes as follow:frompaperdlimportpaperdlconfig={'logfilepath':'paperdl.log','savedir':'papers','search_size_per_source':5,'proxies':{}}target_srcs=['arxiv','googlescholar']client=paperdl.Paperdl(config=config)client.run(target_srcs)In addition, if you can not visit google, you can set config as follow:config={'logfilepath':'paperdl.log','savedir':'papers','search_size_per_source':5,'proxies':{},'area':'CN'}You can also only download papers by using sci-hub as follow:frompaperdlimportpaperdlconfig={'logfilepath':'paperdl.log','savedir':'papers','search_size_per_source':5,'proxies':{}}client=paperdl.SciHub(config=config,logger_handle=paperdl.Logger('paper.log'))paperinfo={'savename':'9193963','ext':'pdf','savedir':'outputs','input':'https://ieeexplore.ieee.org/document/9193963/','source':'scihub',}client.download([paperinfo])Calling EXEUsage:paperdl[OPTIONS]Options:--versionShowtheversionandexit.-m,--modeTEXTtheusedmode,support"search"and"download"-i,--inpTEXTthepapertodownload,thesupportedformatisthesameassci-hub-s,--sourceTEXTtheusedsource,support"arxiv","scihub"and"googlescholar",youcanuse","tosplitmultisources-d,--savedirTEXTthedirectoryforsavingpapers-l,--logfilepathTEXTtheloggingfilepath-z,--sizeINTEGERsearchsizepersource-p,--proxiesTEXTtheproxiestobeadopted-a,--areaTEXTyourarea,support"CN"and"EN"-c,--cookieTEXTthecookiecopiedfromthetargetwebsite,onlyusedin"baiduwenku"--helpShowthismessageandexit.ScreenshotProjects in Charles_pikachuGames: Create interesting games by pure python.DecryptLogin: APIs for loginning some websites by using requests.Musicdl: A lightweight music downloader written by pure python.Videodl: A lightweight video downloader written by pure python.Pytools: Some useful tools written by pure python.PikachuWeChat: Play WeChat with itchat-uos.Pydrawing: Beautify your image or video.ImageCompressor: Image compressors written by pure python.FreeProxy: Collecting free proxies from internet.Paperdl: Search and download paper from specific websites.Sciogovterminal: Browse "The State Council Information Office of the People's Republic of China" in the terminal.CodeFree: Make no code a reality.DeepLearningToys: Some deep learning toys implemented in pytorch.DataAnalysis: Some data analysis projects in charles_pikachu.Imagedl: Search and download images from specific websites.Pytoydl: A toy deep learning framework built upon numpy.MoreWeChat Official AccountsCharles_pikachu
Package: paperead
Papereadis a tiny tool to present and manage your reading and notes.PlatformPythonFeaturesFile-system based storageSimple and readableEasy to use with VSCodeNotes in markdownCommonMarkLaTex MathMedia (locally hosted or remote files)Code highlightingLists and tablesGraphsRich pagesSlides powered by reveal.jsImage, audio, and video.PDF and links.Dynamic generated (use Python script).Raw HTML.Builtin web serverBasic authenticationReadonly modeRESTful APIFrontend in browserDynamic markdown renderingBuiltin reader modeStatic website generatorFor details about features, installation and usage, visitdocumentswebsite powered by Paperead.InstallUse pip:pipinstallpapereadUsagepapereadnewfirst-material
papereadnewfirst-material-Nfirst-note

papereadserve# Visit http://localhost:3649Development# Run backendcdsrc/main
pipinstall-rrequirements.txt
python-mpaperead-D"path/to/dataDir"serve# endpoint: http://localhost:3649/api# Run frontendcdsrc/web
npminstall
npmrunrestore
npmrundev# endpoint: http://localhost:3600
Package: paper-feeds
paper-feedsA FastAPI web server for creating RSS feeds for scholarly journals with the magic of adversarial interoperabilityMany journals still have RSS feeds. Some don't though, as they try
and squeeze everyone onto their platforms to monetize our
engagement data.This is a simple web app for creating feeds (currently RSS, soon ActivityPub and Atom) for academic papers by
collecting metadata from multiple data sources. It intended to be a publicly- and self-hostable
toolkit for subscribing to and curating scholarly literature!Dependencies are kept minimal, as
is deployment - No webpack, no complex build, no postgres,
just pip install and press play :).usage(to be completed when main docs are, for now here's something brief)Aftercreating and activating a virtual environment...pipinstallpaper-feeds
python-mpaper_feeds# then open http://localhost:8000 in your browserNote: we are still working out the packaging here, so you may
need to clone the repository and run the server from the repo
root until we can figure that out :)And seeCONTRIBUTING.mdfor more information on setting up
a development environmentprogressEverything is just getting started! things will break and change! To be moved to docs when made. Help wanted on all, open an issue <3API:Query Crossref for journalWrite journal metadata to dbPaginate papers by journalStore papers in dbPopulate papers when feed createdPeriodic database updatesCache Feed outputScheduled update of feed metadataBackfill Abstracts and other additional dataFeed statisticsFrontendSearch for journalDisplay list of journalsPages for each journalCreate new feed buttonCopy feed linkExport feedsShow existing feeds, stats, threadsFeed TypesJournalsAuthors (via ORCID)KeywordsFeed FormatsRSSRSS feed from papers by issnLinked Data-enriched RSS feeds (seecrossref's advice)HTML formatting for item detailsActivitypubActors for feedsLD-enriched ActivityStreams actionsBot-Actor for instanceDOI mention detection & crossref events dataHashtag -> keyword detectionCreate threads under feed actor with mentionData SourcesCrossrefJournalsPapersEventsOpenAlexORCIDPubPeerRetractionWatchHypothes.isMetaDocsWe need em! Sphinx & RTD!Move this list to thereScopeDesignUsageConfigurationTestsBasic CICreditsEl Duvelle, whose need for RSS feeds inspired this project@lambdaloop (list PRs)@roaldarbol (list PRs)Referenceshttps://github.com/marty331/fasthtmx/https://samherbert.net/svg-loaders/https://htmx.org/examples/active-search/See alsohttps://github.com/internetarchive/fatcat-scholar
Package: paperfetcher
paperfetcherAboutPaperfetcher is a Python package to to automate handsearching and citation searching
(snowballing) for systematic reviews. Paperfetcher works with Python 3.7+.To learn more about Paperfetcher, visitpaperfetcher.github.io.UsageTo get started, browse the Jupyter notebooks in theexamples/directory in this
repository.Once you understand the workflow, read theModule Documentationto
learn more about paperfetcher's various modules, classes and functions.InstallationInstallation with pipInstall pipInstall paperfetcher using pip:pipinstallpaperfetcherInstallation from sourceClone this repositoryIn the repository directory, runpythonsetup.pyinstallor, if you have pip installedpipinstall.Running tests (if installed from source)You can run tests to make sure that paperfetcher is working correctly on your system.To run integration tests, in the repository directory, runcdtests/tests_integration
pytestTo run unit tests, in the repository directory, runcdtests/tests_unit
pytestThe TeamPaperfetcher was developed byAkash Pallathat theUniversity of PennsylvaniaandQiyang Zhangat theJohns Hopkins University.
Package: paper-finder
paper finderFind papers by keywords and venues. Then download it automatically.InstallingInstall and update usingpip:pipinstall-Upaper-finder功能论文检索利用dblp提供的API。论文引用利用semanticscholar,5分钟内只能请求100次，文献多的话可能会比较慢。论文代码获取利用paperswithcode提供的代码进行代码检查。常用的期刊列表CV_A=["CVPR","ICCV","TIP","TPAMI","TVCG","TOG","SIGGRAPH","IJCV"]DM_A=["KDD","WWW","ICDE","TKDE"]ML_A=["ICML","NIPS","NeurIPS"]NLP_A=["ACL","SIGIR"]overall_A=["AAAI","IJCAI","CSCW","CHI","Ubicomp","MM"]ref_ccf_a=['AAAI','NIPS','ACL','CVPR','ICCV','ICML','IJCAI','WWW','KDD','SIGIR']ref_ccf_b=['EMNLP','ECCV','COLING','CIKM','WSDM','NAACL']ref_other=['ICLR']refs=ref_ccf_a+ref_ccf_b+ref_otherExamples点击这里查看Quick StartSearchfrompaper_finder.apiimportsearchkeyword_list=['knowledge tracing','knowledge trace']venue_list=['KDD','IJCAI']output='kt_result.csv'search(keyword_list=keyword_list,venue_list=venue_list,min_year=2016,max_year=2021,output=output)Your can find venues' name inthere.Downloadimportpandasaspdfrompaper_finder.apiimportdownload_from_dfcsv_path="kt_result.csv"df=pd.read_csv(csv_path)df=download_from_df(df,save_dir='pdfs')df.to_csv(csv_path.replace('.csv','_download_result.csv'),index=False)TodoSearch papers.Download papersAuthor WarningThis code is only used for academic communication.
The author has no liability for copyright.
DO NOT ENGAGE IN ANY ILLEGAL ACTIVITIES.Please download and read the genuine articles from the publisher.
Package: paper-jsoneditor
paper-jsoneditorJSON input widget for paper-admin.Compatibilitypython>= 3.6django>= 3.1paper-admin>= 6.0InstallationInstall the latest release with pip:pipinstallpaper-jsoneditorAddpaper_jsoneditorto your INSTALLED_APPS in django'ssettings.py:INSTALLED_APPS=(# other apps"paper_jsoneditor",)Usagefromdjango.dbimportmodelsfromdjango.utils.translationimportgettext_lazyas_frompaper_jsoneditor.fieldsimportJSONFieldclassSampleModel(models.Model):data=JSONField(_("JSON"))classMeta:verbose_name=_("Sample")Result:Preserving JSON object keys orderBy default, Django uses thejsonbinternal type forJSONField(for PostgreSQL).From thePostgres documentation:<...> jsonb does not preserve white space, does not preserve the order
of object keys, and does not keep duplicate object keys. If duplicate keys
are specified in the input, only the last value is kept.In general, most applications should prefer to store JSON data as jsonb,
unless there are quite specialized needs, such as legacy assumptions about
ordering of object keys.If you really do need to preserve the key order, useOrderedJSONField.
It uses theTEXTtype to store data:fromdjango.dbimportmodelsfromdjango.utils.translationimportgettext_lazyas_frompaper_jsoneditor.fieldsimportOrderedJSONFieldclassSampleModel(models.Model):data=OrderedJSONField(_("JSON"))classMeta:verbose_name=_("Sample")
Package: paperless
PaperlessMade With Love ❤️ from  :israel: :israel:Paperlessis a tool that extends the capabilities ofPapermillby providing the ability to run Papermill viaGoogle Cloud Dataproc Serverless.OverviewPapermill is a powerful tool for parameterizing and executing Jupyter Notebooks. However, by default papermill dosn't supportJupyter Kernel Gateway- it was impossible to run spark notebook vs Google Cloud Dataproc Serverless environment with Papermill tool - this is where Paperless helps.Paperless bridges the gap between Papermill and Google Cloud Dataproc Serverless interactive mode, allowing you to seamlessly integrate the two and harness the power of serverless execution for your Jupyter Notebooks.FeaturesServerless Execution:Run Papermill on Google Cloud Dataproc without managing the underlying infrastructure.Scalability:Leverage the scalability of Google Cloud Dataproc for processing multiple Notebooks concurrently.Cost-Effective:Pay only for the resources you consume during the execution, optimizing costs for your notebook parameterization tasks.Pricing model is much more cost-effective considering other platofrms and technologiesresource:https://cloud.google.com/dataproc-serverless/pricingGetting StartedPrerequisitesBefore using Paperless, make sure you have the following:A Google Cloud Platform (GCP) projectAccess to Google Cloud DataprocEnable the APIPapermill installed locally or in your environmentStep 1: Install Google Cloud SDKTo authenticate your application using Application Default Credentials (ADC) withgcloud-
If you haven't already installed the Google Cloud SDK, you can download and install it from theGoogle Cloud SDK documentation.Step 2: Authenticate withgcloudOpen a terminal and run the following command to authenticate your Google Cloud SDK with your Google Cloud Platform (GCP) account:gcloudauthlogin

gcloudauthapplication-defaultloginStep 3: Install PaperlesspipinstallpaperlessStep 4: Create sessionTemplates For PaperlessParameters and details can be found inGCP Docs.gcloudcomputeinstance-templatescreatepaperless-interactive--<extraparams...>You can change parameters as you need based on the jobs needs - check the docs for that.Step 5: Test Executtion:Paperless excepts && supports all list or arguments exists in originalPapermillpackage -
the minimum needed for testing:paperless<input_path><output_path>...An extra parameter that is special for Paperless: --template_name
Example:paperless./resources/spark.ipynb./resources/spark-out.ipynb--template_namepaperless-interactiveYou're all set, enjoy :)Local development:# Create a new directory for your projectgitclonehttps://github.com/Plarium-Repo/paperless.git&&cdpaperless# Create a virtual environmentpython3-mvenv.venv# Activate the virtual environment# On Windows.venv\Scripts\activate# On macOS and Linuxsourcevenv/bin/activate# Install requirementspipinstall-rrequirements.txt# Install the command linepythonsetup.pyinstall# Execute examplepaperless./resources/spark.ipynb./resources/spark-out.ipynbMIT LicenseContributionCode Of Conduct
Package: paperless-asn-qr-codes
paperless-asn-qr-codespaperless-asn-qr-codesis a command line utility for generating ASN labels
for paperless with both a human readable representation, as well as a QR code
for machine consumption. The labels are Avery 4731 labels.Installationpip install paperless-asn-qr-codesLicensepaperless-asn-qr-codesis distributed under the terms of theGPL-3.0license.
Package: papermap
PaperMapPaperMap is a Python package and CLI for creating ready-to-print paper maps.InstallationFrom PyPIPaperMap is available onPyPI.As a packageFor use as a package, install PaperMap withpipor your package manager of choice:pipinstallpapermapAs a CLI toolFor use as a CLI tool, we recommend installing PaperMap withpipx:pipxinstallpapermapFrom sourceIf you'd like, you can also install PaperMap from source (withflit):gitclonehttps://github.com/sgraaf/papermap.gitcdpapermap
python3-mpipinstallflit
flitinstallDocumentationCheck out thePaperMap documentationfor theUser's GuideandAPI Reference.UsagePaperMap can be used both in your own applications as a package, as well as a CLI tool.As a packageUsing the default values, the example below will create an portrait-oriented, A4-sized map of Bangkok at scale 1:25000:>>>frompapermapimportPaperMap>>>pm=PaperMap(13.75889,100.49722)>>>pm.render()>>>pm.save("Bangkok.pdf")You can easily customize the generated map by changing the tile server, size, orientation, etc. For an exhaustive list of all available options, please see theAPI Reference.For example, the example below will create a landscape-oriented, A3-sized map of Madrid using theStamen Terreintile server, with a UTM grid overlay, at scale 1:50000:>>>frompapermapimportPaperMap>>>pm=PaperMap(...lat=40.416775,...lon=-3.703790,...tile_server="Stamen Terrain",...size="a3",...landscape=True,...scale=50_000,...add_grid=True,>>>)>>>pm.render()>>>pm.save("Madrid.pdf")As a CLI toolSimilarly, using the default values, the example below will create an portrait-oriented, A4-sized map of Bangkok at scale 1:25000:$papermaplatlon--13.75889100.49722Bangkok.pdfAs with the package, maps generated through the CLI are also highly customizable. Please see theCLI Referencefor an exhaustive list of all available options.The example below will create a landscape-oriented, A3-sized map of Madrid using theStamen Terreintile server, with a UTM grid overlay, at scale 1:50000:$papermaplatlon\--tile-server"Stamen Terrain"\--sizea3\--landscape\--scale50000\--grid\--40.416775-3.703790Madrid.pdf