Saravanan666/pypi-org huggingface dataset:
Package: citato
🤖 Citato - Simple Instagram APIThis package lets you use Instagram's Internal Web API through simple functions and classes. Citato uses Instagram's Original Web API to scrape data which makes it a reliable choice over other third-party scrapers. This library mainly focuses on Simplicity & Reliability.Two type of classes are supported -Guest & Host.📢 Announcements[#02]AutoHostis released! Authentication update to theHost Class.[#01]Users can now log in through theirUsernameandPasswordto generate SessionId!See thisInstallationTo install this package usingPython's PIP, run this command in a terminal window:$pipinstallcitatoTo update the existing package, run:$pipinstallcitato--upgrade🧔🏻‍♂️ Guest ModeThis mode doesn't require login and can be used to fetch publicly available data from Instagram's Servers. Following methods are supported till now:Check if username is available for registrationFetch someone's profile dataConvert username to useridConvert userid to usernameHere's an example where an instance ofGuest Classis created to fetchCristiano Ronaldo'sprofile information:fromcitatoimportGuestguest=Guest()profile=guest.profile("cristiano")ifprofileisNone:print("Something went wrong.")else:print(profile.biography)print(profile.follower_count)print(profile.following_count)🧔🏻‍♂️ Host ModeHost mode requires login through SessionID, which should be passed as an argument during initialization.
It can be used to take actions that require login. Additionally, users can manage their own profile through this class.These are the methods supported till now:Check authentication status of the userFollow/unfollow usersFetch someone's follower/following listSwitch account type - 'Public' or 'Private'Here's an example where an instance ofHost Classis created to followCristiano Ronaldo'saccount:fromcitatoimportHost,NewSessionIDsessionid=NewSessionID("username","password")host=Host(sessionid)status=host.follow("cristiano")ifstatusisNone:print("Something went wrong.")else:ifstatus.following:print("Following!")elifstatus.follow_requested:print("Requested to follow!")Note:When you create a new sessionid throughNewSessionID(), it's recommended to save it somewhere, and use the same sessionid (instead of creating a new one each time you need) until it expires or becomes invalid.This should be done to avoid unnecessary prolonged wait time while generating a new sessionid and also to prevent getting your account from getting flagged because of repetitive logins.📋 RememberEvery function should returnNoneon failure. So, it's recommended to add anif statementbefore using the actual data to avoid TypeErrors. Here's an example:fromcitatoimportGuestguest=Guest()available=guest.username_availability("cristiano")ifavailableisNone:# 'None' indicates failureprint("Something went wrong.")else:print(available)DisclaimerThis is a third-party package, and not approved by Instagram. It doesn't promote illegal activities or activities that violateInstagram's Community Guidelinessuch as spamming users, creating bot accounts, misusing data etc. You are solely responsible for all the actions you take using this package.
Package: citcall-devel
citcall-pythonCitcall REST API for Python. API support for Synchchronous Miscall, Asynchronous miscall, and SMS.This is the Python3 client library for use Citcall's API. To use this, you'll need a Citcall account and Your IP has been filtered in citcall system. Seecitcall documentationfor more information. This is currently a beta release.InstalationInstall Using PIPpipinstallcitcall-develInstall Source from GitHub$gitclonegit://github.com/citcall/citcall-python.gitRemember to note that the citcall folder is a package.UsagefromcitcallimportCitcallCreate Objectaccount=Citcall(userid="Your userid",apikey="Your apikey")ORimportcitcallCreate Objectaccount=citcall.Citcall(userid="Your userid",apikey="Your apikey")ExampleMiscall OTPTo useCitcall's Miscall Async APIto Asynchronous miscall, call theaccount.async_miscall()method.The API can be called directly, using keyword argument, the keys match theparameters of the API.motp=account.async_miscall(msisdn="msisdn",gateway=gateway)If you want to able to do verify later use this example.motp=account.async_miscall(msisdn="msisdn",gateway=gateway,valid_time=valid_time,limit_try=limit_try)Syncmotp=account.sync_miscall(msisdn="msisdn",gateway=gateway)motp=account.sync_miscall(msisdn="msisdn",gateway=gateway,valid_time=valid_time,limit_try=limit_try)The API response data can be accessed as dictonaryprint(motp)SMSTo useCitcall's SMS APIto send an SMS message, call thecitcall.sms()method.The API can be called directly, using using keyword argument, the keys match theparameters of the API.sms=account.sms(senderid="citcall",msisdn="msisdn",text="Hello World!")The API response data can be accessed as dictonaryprint(sms)ContributeCheck for open issues or open a new issue for a feature request or a bugForkthe repositoryon Github to start making your changes to themasterbranch (or branch off of it)Write a test which shows that the bug was fixed or that the feature works as expectedSend a pull request and bug us until We merge it
Package: cite
citeInstallationpip install citeUsagePrints citation from DOIs or URLs of journal articles which provide DOIs in their
metadata.$ cite https://doi.org/10.1103/PhysRev.48.73

Einstein, A., & Rosen, N. (1935). The Particle Problem in the General Theory of Relativity. Physical Review, 48(1), 73–77. doi:10.1103/physrev.48.73Other output styles formats are supported, see the list of CSL styles arhttps://citation.crosscite.org/$ cite --style iso690-author-date-en https://doi.org/10.1103/PhysRev.48.73

EINSTEIN, A. and ROSEN, N., 1935, The Particle Problem in the General Theory of Relativity. Physical Review [online]. 1 July 1935. Vol. 48, no. 1, p. 73–77. DOI 10.1103/physrev.48.73. Available from: http://dx.doi.org/10.1103/PhysRev.48.73To generate a BibTeX entry with a shortdoi-based unique key use--bibtexor-b$ cite --bibtex https://doi.org/10.1103/PhysRev.48.73The entry's key is made of name, year andshort DOIof the item.To get Citeproc-JSON use--jsonor-j.Where the journals provide the DOI in their website's metadata it is also
possible to use the article website URL:$ cite https://journals.aps.org/pr/abstract/10.1103/PhysRev.48.73

Einstein, A., & Rosen, N. (1935). The Particle Problem in the General Theory of Relativity. Physical Review, 48(1), 73–77. doi:10.1103/physrev.48.73To add to an entry to an existing BibTex file:cite --bibtex https://doi.org/10.1103/PhysRev.48.73 >> bibliography.bibFor the full list of options, see$ cite --helpUses CrossciteDOI Content Negotiation.
Package: cite2c
Live citations in IPython notebooksscreenshotTo install this:pip install cite2c
python -m cite2c.installIt requires Jupyter Notebook 4.2 or above.You will see two new toolbar buttons:. The left one
inserts a citation at the current point in a Markdown cell. The right
one inserts a bibliography.This extension has two main components: - UI for finding citations from
a Zotero library and inserting them into Markdown cells. The citations
are stored in the notebook metadata, and referenced by an ID. - Code to
runciteproc-jswhen a Markdown cell is rendered, rendering both bibliographies and
inline citations.
Package: citecheck
citecheck: like typechecks, but for citations 📖⛓️Quick exampleConsider this example (all authors and quantities are fictitious):Doe (2021) published a method for estimating $V_t$ as a function of $q_p$ and $t$.Bloggs (2023) published a method for estimating $R_m$ as a function of $V_t$ and
$\rho$, with the explicit requirement that $V_t$ be estimated using the method of
Doe (2021) in particular.The goal for citecheck is that you could implement this as follows:fromcitecheckimportenforcecite,Cite@enforcecitedefcalc_vt_doe2021(qt:float,t:float)->Annotated[float,Cite("doe2021")]:...@enforcecitedefcalc_rm_bloggs2023(vt:Annotated[float,Cite("doe2021")],rho:float)->Annotated[float,Cite("bloggs2023")]:...Now, if we try to pass a value for $V_t$ that was not estimated using the method of Doe
(2021), we would get an error:calc_rm_bloggs2023(vt=1.0,rho=1.0)# Errorcalc_rm_bloggs2023(vt=calc_vt_doe2021(1.0,1.0),rho=1.0)# OKcitecheck is still in development, but this is the general idea.When to use citecheckYou should consider using citecheck when you are implementing functions corresponding to
equations or methodologies in multiple papers which refer to one another.Getting Started with DevelopmentUse Linux, installpyenv, and then run the setup
script:source.\scripts\dev-setup.sh
Package: citelang
CiteLangWelcome to CiteLang! CiteLang provides methods and graph-based modeling to study software
ecosystems. You can use CiteLang for your research, or a provided tool to generate
software graph artifacts, including (but not limited to):Generate basic software credit trees (citelang graph, badge, or markdown credit)Give credit accounting for dependencies! (seesoftware-credit.md)Actions (automation) for the above!For the examples above, we aren't using DOIs! A manually crafted identifier that a human has to remember to generate,
in addition to a publication or release, is too much work for people to reasonably do. As research
software engineers we also want to move away from the traditional "be valued like an academic" model.
We are getting software metadata and a reference to an identifier via a package manager. This means
that when you publish your software, you should publish it to an appropriate package manager.Getting StartedIf you want to use CiteLang as an analysis library, jump into the more detailed ⭐️Documentation⭐️
or look specifically at thePython API.
As an example analysis, theRSEPedia Software Ecosystemis a completed automated setup that parses and summarizes dependencies across theResearch Software Encyclopediaweekly, and it's powered by CiteLang! You can do similar analyses or build your own tools using CiteLang. We will provide a small summary of the tools available here.BadgesCiteLangBadgescan show an entire credit tree
for a project:or can be generated to be interactive web interfaces asshown here.See thebadgedocumentation for more examples
of customizing the look, or level of abstraction. You can automatically generate or update
a badge for your repository using the providedGitHub Action.Credit and GraphIf you want to visually show dependency graphs, usingCreditwill print this to the console, and optionally in json if you want just the data. With theGraphcommand you can render different kinds of pretty graphs (or data formats dot, cypher, gexf) using this same data.ContributionsCiteLang has aContribcommand and underlying
API that can dig into your git history and look at contributions based on lines. You can read a complete write-up
and see examplesin this blog post. It is currently being used
by the SingularityCE project to say thank you to contributors!If you want to generate data programatically, we provideA GitHub action.Render and GenerateThe functionality that originally derived the name - a "markdown syntax for citations" means that we can start from amarkdown paperthat has some number of CiteLang formatted references, and result in arendered paperthat includes a credit table. This is done with theRendercommand, or you can just output a table into its own markdown file withGenerate. We providean example hereand also provide aGitHub actionfor you to generate this for your own repository.ContributorsWe use theall-contributorstool to generate a contributors graphic below.Vanessasaurus💻Dave Trudgian💻Traceton💻LicenseThis code is licensed under the MPL 2.0LICENSE.
Package: citellus
IntroductionCitellus is a framework to help with system configuration validation on
either live system or any sort of snapshot of the filesystem.Via execution of ‘plugins’ it reports status on each one execution
against the system that gives you an idea on health status, actual
problems or problems that will reveal themselves if no preventive action
is taken.Please if you have any idea on any improvements please do not hesitate
to open an issue.HighlightsPlugins written in your language of choice.Allows to dump output to json file to be processed by other tools.Allow to visualize html from json output.Check our sample at:Citellus-wwwAnsible playbook support.Save / restore default settingsCheck latest changes onChangelog.mdCheck for plugins listing oncitellusclient/plugins/Framework contains additional readmes for the tools included:Citellus READMEMagui READMEInstallationCheckREADMEabove for detailed instructions outside os simple ones:
- Just clone the git repository and execute it from there ‘or’ - use
‘pipsi’ or create a python virtual env to install package ‘citellus’Give it a try running as ‘root’ on your system with:./citellus.py-lso it will showlive executionand onlyFailedtests.How does it looks like?Check how does it look in an execution at:asciicastAdditional resourcesCheckhttps://citellusorg.github.iofor more details and information
Package: citeproc-markdown
citeproc-markdownPython markdownextension to convert a CSL data block in markdown to a styled bibliography in the HTML output. Requires aciteproc-js serverin order to work.ExampleMarkdown source# The origins of the term _anthropocene_The term_anthropocene_has been coined by Crutzen and Stoermer in the year 2000.```csl-yaml- id: crutzenAnthropocene2000author:- family: Crutzengiven: P.J.- family: Stoermergiven: E.F.container-title: Global Change Newsletterissued:raw: "2000"page: 17-18title: The “Anthropocene”type: article-journalvolume: '41'```We use a fenced code block to store the CSL data. The data language is defined directly after the first backticks ascsl-<language>, where<language>is the language the bibliographic data is stored in. Supported values areyaml,jsonandjson5.Python conversion snippetfrommarkdownimportmarkdownmarkdown(content,extensions=['citeproc'],extension_configs={'citeproc':{'citeproc_endpoint':'DEFINE_ENDPOINT_HERE'}})Alternatively, the endpoint can also be defined through the environment variableCITEPROC_ENDPOINT, either in memory or in a.envorsettings.inifile in the working directory.HTML output<h1>The origins of the term<em>anthropocene</em></h1><p>The term<em>anthropocene</em>has been coined by Crutzen and Stoermer in the year 2000.</p><divclass="csl-bib-body"><divclass="csl-entry">Crutzen, P.J., and E.F. Stoermer. 2000. “The ‘Anthropocene.’”<i>Global Change Newsletter</i>41: 17–18.</div></div>
Package: citeproc-py-styles
AboutThis module is meant to be used as a static resources package, in order to make
it easy to include the required Citation Style files (.csl) when usingciteproc-py.In order to avoid always installing ~40MB of files each time you include it in
a project you could specify it as an extra in yoursetup.py, and only use it
in the production environment or as an optional feature of your module.
(Example setup.py)The included files are originally hosted on theCSL Style Repositorywhich belongs to theCSL ProjectNote: The style files are referenced as a git submodule. This means that this
repository/package is pinned on a specific commit of the CSL Style Repository,
and thus may not include any fixes or new styles that may have been added.
Next versions of this repository will of course ‘bump’ the styles version to
the latest commit, but this will not happen on a scheduled basis for the time
being.Installationciteproc-py-styles is on PyPI so all you need is:pip install citeproc-py-stylesUsageThis is a minimal example of how one could useciteproc-py-stylesto render a
citation withciteproc-py:fromciteprocimport(Citation,CitationItem,CitationStylesBibliography,CitationStylesStyle,formatter)fromciteproc.source.jsonimportCiteProcJSONfromciteproc_stylesimportget_style_filepathcsl_data=json.loads("...")source=CiteProcJSON(csl_data)style_path=get_style_filepath('apa')style=CitationStylesStyle(style_path)bib=CitationStylesBibliography(style,source,formatter.plain)bib.register(Citation([CitationItem('data_id')]))print(''.join(bib.bibliography()[0]))
Package: citerate
Circular iterator (Citerate)Bi-dimensional matrix iterator starting from any point (i, j), iterating layer by layer around the starting coordinates.Usagepip install citerateAs of14 july 2021it contains one methodciteratorfrom citerate import citeratorExamplesUsing the example data set:TEST_SET = [
    [10, 11, 12, 13, 14],
    [25, 2,  3,  4,  15],
    [24, 9,  1,  5,  16],
    [23, 8,  7,  6,  17],
    [22, 21, 20, 19, 18],
]Iterate over the set layer by layer starting from coordinates (i=2, j=2) and print each layer as a list of it's corresponding values.for layer in citerate.citerator(TEST_SET, i=2, j=2, layer=True):
    print(layer)Yields:[1]
[2, 3, 4, 5, 6, 7, 8, 9]
[10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]Iterate over the set value by value starting from coordinates (i=2, j=2) and print each value individually.for value in citerate.citerator(TEST_SET, i=2, j=2):
    print(value, end=' ')Yields:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25FootnotesIt is NOT mandatory to iterate starting from the central coordinates or for the matrix to be uniform.It HAS to be bi-dimenstional and follow a "list of lists" pattern.
Package: citerus
citerusA command-line tool to easily find cryptographic citations to use with LaTeX..-.
                              /  .\
                            .' .  .'.
                         .-'. .    . '-._
                       .' ..    . . . .  '.
                      /. .    .        .  .\
                     / .  . .     . .. . .  \
                    |. .  .      .. . . ...  |
                    / . .     .       .  .  .\
                   | . . ._______ .. . .  . ..|
                   |   . /       \ .   . .  . |
                   |. . { CITERUS }. ..   . ..|
                   |.  . \_______/.     .   ..|
                   | .  .          . . . . .  |
                   |. .     .    .. .   .   ..|
                    \  . .        .  . .  . . /
                    |  .  .      .  .  . . . |
                     \. .     .  . .  .. . .'
                      \  ..      .. .   . /
                       ':_ .  .  . ... _.'
                          '-.. . .  .-'
                              '._..'What does Citerus do?Citerus retrieves your citations.(How do I pronounce it?Like so: /saɪt.rəs/)When writing cryptographic papers, authors often use the excellentcryptobibdatabase. Since it consists of a large file, it is not often convenient to search in it. If you like the command line but you find grep awkward then citerus might be for you.Example:Suppose you want to find relevant citations forround complexity in MPC, just:Typeciterus mpc roundin your terminalSelect all the papers that you find relevant (see screenshot). Exit the program.Citerus will automatically copy in your clipboard the relevant LaTeX code to cite them.
That's it!To see more options and examples typeciterus --help.Installingpip install citerusIf you don't have pip, install it first withpython -m ensurepip --upgrade.NB: currently citerus has been tested on macOS and GNU/Linux only. Feel free to try it on Windows too though.AckThanks to Mahak P. for coming up with the specific form of the citerus name.
Package: citeulike_api
========================CiteULike Client========================a python client for Citeulike.This project has just been spun off `possumpalace_kit <https://bitbucket.org/howthebodyworks/possumpalace_kit/src/23e924ba53e8/_lib/citeulike/>`_, my blog engine.If you notice any problems with paths or dependencies, please file a patch. Orjust fork it. I'll make you maintainer in all likelihood, as I'm no longerusing CiteULike so very much, having banned myself from spending too much time working around its foibles.The CUL "API" was pieced together from forum comments made by the CUL staff over time.e.g. how to* `do JSON searches <http://www.citeulike.org/groupforum/2253>`_* `edit records by HTML form submission <http://www.citeulike.org/groupforum/700>`_* `Edit URLs and JSON fields <http://www.citeulike.org/groupforum/2312>`_usage======Here is an example of how i use this from my pavement.py file to write out a bibtex file of all records and download all PDFs:if options is None: options=globals()['options']from citeulike.citeulike_api import CiteULikeoutjsonpath = path(options.docroot)/options.bibtex_json_fileif os.path.isabs(options.attachment_path):outpdfpath = path(options.attachment_path)else:outpdfpath = path(options.docroot)/options.attachment_pathcul = CiteULike(username=options.cul_username,password=options.cul_pass,json_cache=outjsonpath,attachment_path=outpdfpath)cul.cache_records()bibtex_string = cul.render('bibtex')with codecs.open(outbibtexpath, 'w', 'utf-8') as bf:bf.write(bibtex_string)TODO=====.. include: TODO.rstNews====0.1.3dev--------*Release date: 16-March-2011** update email to allow upload, and bump version accordingly0.1.2dev--------*Release date: 16-Mar-2011** correct URL to https://bitbucket.org/howthebodyworks/citeulike_api/src0.1dev-------*Release date: 16-Mar-2011** initial release of the version from https://bitbucket.org/howthebodyworks/possumpalace_kit/src/23e924ba53e8/_lib/citeulike/
Package: citext
Django CITEXTPostgreSQL CITEXT integration for Django.Setuppython3 -m pip install django-citext# settings.pyINSTALLED_APPS=['citext',# ...]Usage# myapp/models.pyfromdjango.dbimportmodelsfromcitextimportCITextField,CIEmailFieldclassMyModel(models.Model):name=CITextField()email=CIEmailField(unique=True)# myapp/views.pyfromdjango.httpimportHttpResponse,HttpResponseNotFoundfrom.importmodelsdefmy_view(request,email):try:my_model=models.MyModel.objects.get(email=email)exceptmodels.MyModel.DoesNotExist:returnHttpResponseNotFound()returnHttpResponse(my_model.name)CreditsProject is based on the Django's own CITEXT implementation,
which was removed in Django 5.0. Big thanks to the Django contributors
for their excellent work.
Package: citextract
CiteXtractCiteXtract- Bringing structure to the papers on ArXiv.Getting startedIn order to install CiteXtract, run the following command:pipinstallcitextractExtracting referencesThen, one can extract references from a text using the RefXtract model:fromcitextract.models.refxtractimportRefXtractorrefxtractor=RefXtractor().load()text="""This is a test sentence.\n[1] Jacobs, K. 2019. This is a test title. In Proceedings of Some Journal."""refs=refxtractor(text)print(refs)It gives the following output:['[1] Jacobs, K. 2019. This is a test title. In Proceedings of Some Journal.']Under the hood, a trained neural network extracts reference boundaries and extracts the references by using these boundaries.Extracting titlesUsing the found references, titles can be extracted by using the TitleXtract model:fromcitextract.models.titlextractimportTitleXtractortitlextractor=TitleXtractor().load()ref="""[1] Jacobs, K. 2019. This is a test title. In Proceedings of Some Journal."""title=titlextractor(ref)print(title)It gives the following output:'This is a test title.'Here, a trained neural network extracts the titles from the given reference.Converting an arXiv PDF to textThere is a utility available which takes an arXiv URL and converts it to text:fromcitextract.utils.pdfimportconvert_pdf_url_to_textpdf_url='https://arxiv.org/pdf/some_file.pdf'text=convert_pdf_url_to_text(pdf_url)print(text)