Saravanan666/pypi-org huggingface dataset:
Package: instarest
Getting StartedTo get started withinstarestfor your application, visit the docs athttps://instarest.erob.io/To contribute toinstarest, see thecontributingsection below.ContributingGetting Started LocallyLaunch postgres and pgadmin via docker-composedocker-compose up --build.Keeping your containers running, open a new terminal with the root of this repo as the working directory. Installpoetry:pip install poetry(or usepipxon link hereif you prefer isolated envs, or consider usingconda).Create and enter the virtual environment:poetry shellInstall the dependenciespoetry installStart the app:uvicorn examples.example_app:auto_app --reload.Openlocalhost:8000/v1/docsand start interacting with swagger!You can shut down and your db / minio data will persist via docker volumes.pgAdminpgAdminconsole is available atlocalhost:5050if you launch viadocker-compose.  Login with email:user@test.comand password:admin.  Make sure that you login to the server with hostnamedbinpgAdmin(under the "connection" tab in server properties).  This is because thepgAdmincontainer is launched in the same docker network as the postgres container, so it uses the service name, whereas launching this app from command line uses port forwarding tolocalhost.  The user, password, and db name will all bepostgres, port5432.Hooks and TestsSet up the precommit hook withpre-commit install.Run tests and get coverage withpytest --cov, and get html reports for vs code live server (or any server) withpytest --cov --cov-report=html:coverage_reOpen a pull request against the repo!  Please write tests, your coverage will automatically be added as a comment to any PR via GH actions.Viewing Docs LocallyInstall docs dependencies withpip install -r requirements-docs.txt.Installmkdocswithpip install mkdocs-material.Move into thedocs/endirectory viacd docs/en.Runmkdocs serveto start a local server.
Package: instasave
instasaveA simple script to download media from Instagram posts.InstallThis script runs onPython 3.7+.
You can install it from PyPI with:pipinstallinstasaveUsageWith this package installed in the activated enrivonment, it can be called throughpython -m instasaveor through a newly createdinstasavecommand.Detailed usage goes as follows:Usage:instasave[OPTIONS][URL]DownloadmediafromInstagramposts.

Arguments:[URL]LinktotheInstagrampostyouwanttodownloadthecontentof.

Options:--log-levelTEXTThebaseconsolelogginglevel.Canbe'debug','info','warning'and'error'.[default:info]--install-completionInstallcompletionforthecurrentshell.--show-completionShowcompletionforthecurrentshell,tocopyitorcustomizetheinstallation.--helpShowthismessageandexit.The downloaded files will be saved in the current directory under a name composed of the file type (image / video) appended by the download timestamp.Warning: abusing this script may get your IP banned by Instagram.TODOImplement proper logging.Make into a package.Make callable as a python module (python -m instasave ...).Improving the command line experience.Made with ♥︎ by fsoubeletMIT © 2020 Felix Soubelet
Package: instascrap
instascrapinstascrapis a Python module for scraping Instagram profile data.InstallationYou can install instascrap via pip:pip install instascrapUsagefrominstascrapimportInstaScraper# Create an instance of InstaScraperscraper=InstaScraper()# Define input datainput_data={"usernames":["yousseifmuhammed"]}# Run the scraperresults=scraper.Scraper(input_data)# Print the resultsforiteminresults:print(item)
Package: insta-scraper
Instagram Photos/Videos/Stories downloaderA python tool to download instagram users media including their photos, videos and statuses/highlights. Requires Python2.7FeaturesDownloading of multiple users media is supported.Doesn't use Instagram API.Runs on Windows and Linux.InstallationThis tool can be installed viapip$pipinstallinsta-scraperUpgradeIf you are using older version of insta-scraper then you can upgrade it by using below command$pipinstall--upgradeinsta-scraperUsageTo download a single user media$insta-scraper-uYOUR_INSTAGRAM_USERNAME-tTARGET_USERNAMETo download multiple users media$insta-scraper-uYOUR_INSTAGRAM_USERNAME-tTARGET_USERNAMETARGET_USERNAME1Or you can even specify a file that contains target usernames seperated by newline.$insta-scraper-uYOUR_INSTAGRAM_USERNAME-ftarget_users.txtYou can execute below command to download all your instagram friends media once.$insta-scraper-uYOUR_INSTAGRAM_USERNAMEHere are the helpful arguments.-u/--user		Instagram username which will be used for login

-t/--target-users	To specify one or more users followed by a space

-f/--filename		Filename containing instagram usernames followed by newline

-o/--output-dir		Output directory to store user's media.
Package: instaseis
Instaseis calculates broadband seismograms from Green’s function databases
generated with AxiSEM and allows for near instantaneous (on the order of
milliseconds) extraction of seismograms. Using the 2.5D axisymmetric
spectral element method, the generation of these databases, based on
reciprocity of the Green’s functions, is very efficient and is approximately
half as expensive as a single AxiSEM forward run. Thus this enables the
computation of full databases at half the cost of the computation of
seismograms for a single source in the previous scheme and hence allows to
compute databases at the highest frequencies globally observed. By storing
the basis coefficients of the numerical scheme (Lagrange polynomials),
the Green’s functions are 4th order accurate in space and the spatial
discretization respects discontinuities in the velocity model exactly. On
top, AxiSEM allows to include 2D structure in the source receiver plane and
readily includes other planets such as Mars.For more information visithttp://www.instaseis.net.copyright:The Instaseis Development Team (instaseis@googlegroups.com), 2014-2020license:GNU Lesser General Public License, Version 3 [non-commercial/academic use]
(http://www.gnu.org/copyleft/lgpl.html)
Package: insta-share
Insta_ShareThis project provides you with functions to be able to do the followings:Login into your instagram account and get the csrf_token and session_id by using login_instagram functionUse the acquired credentials from output of the mentioned function to share a post into your Instagram accountUse the acquired credentials to upload a storyInstallationpipinstallrequestspipinstalljsonlibpipinstallhttps://github.com/softcoder24/insta_share/archive/master.zipUsagefrominsta_shareimportInstagraminsta=Instagram()session={"csrf_token":"CSRF_TOKEN","session_id":"SESSION_ID"}insta.load(session)withopen('toronto.jpg','rb')asimage:share_post=insta.post(image,caption="Lovely City")print(share_post)story=insta.story(image)print(story)Sample response for share_post:{'message': 'photo was shared successfully!', 
 'data': {'media': {'taken_at': 1605625037, 'pk': '2444482423770884550', 
    'id': '2444482423770884520_42370920440','device_timestamp': 1605625026, 
    'media_type': 1,
     ...
 'status': 'ok'}}Sample response for story:{'message': 'story was shared successfully!', 
    'data': {'media': {'taken_at': 1605625634, 'pk': '2444487375272740605', 
    'id': '2444487375272740603_42370920439', 'device_timestamp': 1605625630,
    'media_type': 1, 
       ...
 'status': 'ok'}}
Package: instaspam2
Hi  everyone ,
      this is a version 1.3 beta 
      under buggy so please report bugs
 Auther : SM02 , Sm02present 
this project only for edeqution perposalapt source onlyapt update
 apt upgrade -y
 apt install python3-pip -y
 pip3 install --upgrade pip
 pip3 install requests
 pip3 install instaspam2

  runing commonds
 type 
 Insta-spamAuther :SM02 SM01 Sm02presentAuther :Simplehacker1 Community GroupPowered by team member :Starting Project date : 02/02/2022update date  : 12/02/2022New Modifed : 20/02/2022Note : Insta-Spam changed To InstaSpamversion : 1.0About  : Insagram Spam messageing  Tool for Fun
Package: instastalk
instastalkInstastalk is a library initiated by a creep who develops massive crush to instagram celebrities and wishes to automate the process of backing up their photos.How to usepip install instastalkfrominstastalkimport(AnonyStalker,InstaStalker,)# no auth - only public posts (no stories)stalker=AnonyStalker()stalker.download_user('jjkoh95',timesleep_factor=45)# will need to create a directory 'jjkoh95'stalker.to_pickle('anony.pkl')# with authlogin_stalker=InstaStalker('your_username','your_password')login_stalker.download_user('jjkoh95',timesleep_factor=45)login_stalker.to_pickle('user.pkl')# to continue last downloadimportpicklewithopen('user.pkl','rb')asf:s:InstaStalker=pickle.load(f)s.download_user('jjkoh95')DisclaimerThis project is initiated as a python practice and I have no intention of going against any rules and regulations of Instagram. Be a discrete creep.
Package: instate
Using the Indian electoral rolls data (2017), we provide a Python package that takes the last name of a person and gives its distribution across states.Potential Use CasesIndia has 22 official languages. And to serve such a diverse language base is a challenge for businesses and surveyors. To the extent that businesses have access to the last name (and no other information) and in absence of other data that allows us to model a person’s spoken language, the distribution of last name across states is the best we have.InstallationWe strongly recommend installingindicateinside a Python virtual environment
(seevenv documentation)pip install instateExamplesfrom instate import last_state
last_dat <- pd.read_csv("last_dat.csv")
last_state_dat <- last_state(last_dat, "dhingra")
print(last_state_dat)APIinstate exposes 3 functions.last_statetakes a pandas dataframe, the column name for the df column with the last names, and produces a dataframe with 31 more columns, reflecting the number of states for which we have the data.from instate import last_state
df = pd.DataFrame({'last_name': ['Dhingra', 'Sood', 'Gowda']})
last_state(df, "last_name").iloc[:, : 5]

    last_name   __last_name andaman     andhra      arunachal
0   Dhingra     dhingra     0.001737    0.000744    0.000000
1   Sood        sood        0.000258    0.002492    0.000043
2   Gowda       gowda       0.000000    0.528533    0.000000pred_last_statetakes a pandas dataframe, the column name with the last names, and produces a dataframe with 1 more column (pred_state), reflecting the top-3 predictions from GRU model.from instate import pred_last_state
df = pd.DataFrame({'last_name': ['Dhingra', 'Sood', 'Gowda']})
last_state(df, "last_name").iloc[:, : 5]
    last_name       pred_state
0   dhingra [Daman and Diu, Andaman and Nicobar Islands, Puducherry]
1   sood    [Meghalaya, Chandigarh, Punjab]
2   gowda   [Puducherry, Nagaland, Daman and Diu]state_to_langtakes a pandas dataframe, the column name with the state, and appends census mappings from state to languagesfrom instate import state_to_lang
df = pd.DataFrame({'last_name': ['dhingra', 'sood', 'gowda']})
state_last = last_state(df, "last_name")
small_state = state_last.loc[:, "andaman":"utt"]
state_last["modal_state"] = small_state.idxmax(axis = 1)
state_to_lang(state_last, "modal_state")[["last_name", "modal_state", "official_languages"]]

      last_name   modal_state official_languages
  0   dhingra     delhi       Hindi, English
  1   sood        punjab      Punjabi
  2   gowda       andhra      TeluguDataThe underlying data for the package can be accessed at:https://doi.org/10.7910/DVN/ZXMVTJEvaluationThe model has a top-3 accuracy of 85.3% on unseen names.AuthorsAtul Dhingra and Gaurav SoodContributor Code of ConductThe project welcomes contributions from everyone! In fact, it depends on
it. To maintain this welcoming atmosphere, and to collaborate in a fun
and productive way, we expect contributors to the project to abide by
theContributor Code of
Conduct.LicenseThe package is released under theMIT
License.
Package: instatext
instatext: Train text classifiers instantlyinstatextis a Python 3 library for processing textual data. It provides a simple API for training and predicting with text classifiers.instatext leveragesfasttext, andpandas, for the heavy liftingGet it now$ pip install instatextRequirementsPython  >= 3.5ExampleTo train a model pass in a csv with the text and labelstext - the text to classify
labels - comma seperated list of labelstext,labels
sample text,"sample"
bad stuff,"bad,sample"
good stuff,"good,sample"importinstatextimportloggingdefmain():print("hello")instatext.train_model("test_data/example.csv","test")instatext.predict("test","Predict my good text",0.5)if__name__=="__main__":loglevel=logging.INFOlogging.basicConfig(format="%(asctime)s|%(levelname)s:%(message)s",level=loglevel)main()
Package: instatools
instatoolsUnofficial Instagram API for python 3.5+Free software: GNU General Public License v3Documentation:https://instatools.readthedocs.ioFeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.8 (2018-10-09)Removed automation functionality and moved it to a separate package0.1.7 (2018-10-09)Added python 3.7 to tox environment list0.1.6 (2018-10-02)Rewrote request caching system to use sqlite database instead of flat files0.1.5 (2018-09-29)Mistake during deployment0.1.4 (2018-09-29)Fixed media url parsing0.1.3 (2018-09-25)Fixed cache interception of non-instagram requests0.1.2 (2018-08-27)Slight tweaks to api0.1.1 (2018-08-17)Added response caching for testing.0.1.0 (2018-05-25)First release on PyPI.
Package: instats
InstatsA Python package for processing statistics from Instagram profilesInstallationinstall instats from command line using:pip3 install instatsOverviewInstats is a Python package for getting and working with statistics from Instagram Profiles.
There exists modules for dealing with data about when posts were made, engagement metrics, and visual cohesiveness
of a profiles posts. It relies heavily on theinstaloader packagefor
logging into Instagram and getting profile and post data.Basic UsageFrom instats import instatsprofile and create and InstatsProfile object:frominstatsimportinstatsprofilep=instatsprofile.InstatsProfile(username='some public profile')Parameters for the InstatsProfile constructor:username: username of an Instagram profile (string)password: password of an Instagram profile (string), required for private accountsToP_n_most_recent: how many of a profiles most recent posts to use for time of post data (int)feedmatch: indicate whether instance will need to process images beforehand (bool)FM_n_most_recent: how many most recent images to consider for feedmatch (int)pixel_count_per_image: how many pixels to use per image when processing feedmatch data (int)Eng_n_most_recent: how many most recent posts to consider for engagement metrics (int)Once an InstatsProfile is instantiated, all relevant modules and methods can be called and used.LimitationsPrivate accounts need a password to be accessed and are considerably slower to get post data from.
Furthermore, getting too many recent posts to process may cause instaloader to throw a too many requests error,
so processing several hundreds of posts from a large account is clumsy and slow.Possible Features to Add in the FutureGet a profile's most engaged followers by ranking who likes/comments on the most posts in a profile.
(this results in a too many requests error for accounts with thousands of likes per post)Module for processing data on the locations of posts made.Module for processing hashtag statistics and their effectiveness on engagement.
Package: insta-tweet
Automatically Repost Content From Instagram to TwitterEver tried sharing an Instagram post to Twitter, only to find out that all you tweeted was a link, and not the actual photo/video?⚠ Humiliating 🤮That could be literally anything. Nobody will click it.InstaTweetshares theactualcontent of the post. Not just a link to it.WithInstaTweet, you can rest easy knowing that, although nobody will click the link,
they’ll at least see what you posted.…What’s InstaTweet?InstaTweetis a customizable tool to automatically repost content from Instagram to Twitter.Simply create aProfile, configure themandatory settings, andadd_pages()to repost fromfromInstaTweetimportProfile# Create a new (local) Profile>>>profile=Profile('myProfile')# Configure the mandatory settings (at minimum)>>>profile.twitter_keys=twitter_api_keys>>>profile.session_id='6011991A'# Add at least one Instagram page (user/hashtag) to repost from>>>profile.add_pages(['the.dailykitten','#thedailykitten'])# Save the Profile [optional]>>>profile.save()SavedLocalProfilemyProfileOnce configured, theProfilecan be used to initialize andstart()InstaTweet:fromInstaTweetimportInstaTweet# Directly initialize with a Profile object>>>insta_tweet=InstaTweet(profile)# Or load a saved Profile by name>>>insta_tweet=InstaTweet.load("myProfile")# Run InstaTweet by calling start()>>>insta_tweet.start()AsInstaTweetruns, its progress will be logged to console:StartingInstaTweetforProfile:myProfileCheckingpostsfrom@the.dailykitten...Checkingpostsfrom#thedailykitten...Finishedinsta-tweetingfor#thedailykittenAllpageshavebeeninsta-tweeted…Okay… But Why? 😟🐥 But Why? 🤨InstaTweet has two main use cases:To automatically share your own Instagram posts to TwitterTo automatically tweet new content from other Instagram usersRegardless of your intention, InstaTweet will detect new posts
from the users you specify, download them, and repost them to
Twitter.…Other Use Case: TheInstaClientThe package’s customInstaClientcan also be used as a standalone Instagram scraperfromInstaTweetimportInstaClient>>>ig=InstaClient(session_id="kjfdn309wredsfl")# Scrape Instagram user or hashtag>>>user=ig.get_user('dailykittenig')>>>hashtag=ig.get_hashtag('#dailykitten')>>>print(user,hashtag,sep='\n')InstagramUser:@dailykittenigInstagramHashtag:#dailykitten# Download most recent post>>>post=user.posts[0]>>>print(post)>>>ig.download_post(post)Post2981866202934977614by@dailykittenigon2022-11-2901:44:37Downloadedposthttps://www.instagram.com/p/Clht4NRrqRObydailykittenigtoC:\path\to\insta-tweet\downloads\2981866202934977614.mp4…InstallationTo install using pip:pipinstallinsta-tweetPlease note thatInstaTweetrequiresPython >= 3.8…DocumentationThe rest of thisREADME,
theAPI documentation, andsnippetscan all be found onRead the Docs
Package: instaviz
instavizInstant visualization of Python AST and Code Objects.InstallationRequires modern Python 3.6+pipinstallinstavizUsageInstaviz is designed to be used like PDB, it will start a webserver when theshow()function is called. Simply pass a class or function to be displayeddefmy_function():# your code...# your codeimportinstaviz;instaviz.show(my_function)You can also run instaviz inside the Python REPL.[GCC7.3.0]::Anaconda,Inc.onlinux
Type"help","copyright","credits"or"license"formoreinformation.
>>>importinstaviz
>>>deffib(n):
...a,b=1,1...foriinrange(2,n+1):
...a,b=b,a+b
...returnb
...>>>instaviz.show(fib)Bottlev0.12.17serverstartingup(usingWSGIRefServer())...
Listeningonhttp://localhost:8080/
HitCtrl-Ctoquit.CreditsThis package bundles some 3rd party javascript libraries. All libraries are bundled in the package so that the WebUI doesn't need to make any requests to the internet to protect the privacy of your code.json2htmljson2html-visualizervisjs
Package: instax
Making celery monitoring easier, using statsd.UsageYou first need to configure thestatsdclient like explained in the docs :http://statsd.readthedocs.org/en/latest/configure.html#from-the-environmentLaunch your celery worker with the--eventsargumentcelery worker --eventsThen runinstaxwith the following argumentscelery events -c instax.Instax --frequency=10.0Frequency in the number of seconds that elapse between two data gatherings.
Package: instax-api
instax_apiThis is a Python Module to interact and print photos to the Fujifilm Instax SP-2 and SP-3 printers.Install this libraryIn order to use this library, you will need to be using Python 3pip3 install instax-apiUsagenote- From version 0.7.0 to 0.8.0, I moved away from adding a script to just calling the module from pyton using the-margument.$ python3 -m instax.print --help
usage: instax-print [-h] [-i PIN] [-v {1,2,3}] image

positional arguments:
  image                 The location of the image to print.

optional arguments:
  -h, --help            show this help message and exit
  -i PIN, --pin PIN     The pin code to use, default: 1111.
  -v {1,2,3}, --version {1,2,3}
                        The version of Instax Printer to use (1, 2 or 3).
                        Default is 2 (SP-2).Examples:Printing a Photo to an SP-2 printer:python3 -m instax.print myPhoto.jpgPrinting a Photo to an SP-3 printer:python3 -m instax.print myPhoto.jpg -v 3Printing a Photo to a printer with a pin that is not the default (1111)python3 -m instax.print myPhoto.jpg -i 1234Hints and tips:Make sure you are connected to the correct wifi network, once the printer is turned on, there will be an SSID / WiFi network available that starts withINSTAX-followed by 8 numbers. You'll need to connect to this.If you have a static IP address set up on your computer, you'll need to turn on DHCP before attempting to print, the Instax printer will automatically assign you a new address once you connect.Some Unix based operating systems may require you to use sudo in order to access the network.The printer will automatically turn itself off after roughly 10 minutes of innactivity.The instax.print utility will attempt to automatically rotate the image so that it either is correctly printed in portrait, or landscape with the thick bottom edge of the print on the left. If you wish to print your photos in a specific orientation that differs from this, then it's reccomended that you orient your photo in a tool like GIMP first, then strip out the rotation metadata. Once the rotation metadata has been stripped, the photo will need to be in a portrait orientation relative to the finished print (e.g. thick edge at the bottom).Install Manuallygit clone https://github.com/jpwsutton/instax_api.git
cd instax_api
python3 setup.py install
Package: instayc
Add keywords that interest youRuninstaycRead the articles later on InstapaperWarning: you might want to wait until articles are put in their own
folder to prevent a lot of unwanted links being added to your instapaper
account.UsageHere is how to use it:$ instayc
Instapaper username: bob
Instapaper password:
Success!
$ instayc -a 'python, django, javascript, math, computer science'
$ instayc
Updating...
14 article(s) were added to InstapaperInstallationUse pip:pip install instaycor..:easy_install instaycTODOarticles that do not have a interest in the title are added sometimesprevent duplicate interests in the config fileuse the new Instapaper API and only store a token instead of user/passput articles in their own folder on Instapaper
Package: instcr
InstitucionesCR ScraperSpanish README/ README en españolPython Scraper to retrieve important data published by institutions.
Supported institutions:BCCR, Central Bank of Costa Rica (dollar exchange rate)RECOPE (Fuel prices at stations and terminals)The daily updated values are useful in automated processes; unfortunately,
many times institutions do not prioritize enabling APIs for easy value retrieval
by programs. For this reason, I have created this small project to fetch
these data from the interfaces previously designed for humans.Installpip install instcrUsageGet fuel price information from RECOPEfrominstcrimportRecoperecope=Recope()recope.print_data()print(f"\nPrecio del diesel:{recope.table_estaciones['diesel_50']['precio_litro_total']}")## ## Much later:recope.update()## Diesel price at stationsrecope.table_estaciones['diesel_50']['precio_litro_total']## Diesel price at terminalsrecope.table_terminales['diesel_50']['precio_litro_total']# recope.table_estaciones.keys() Shows all available fuels at stationsExchange rate from the Central Bank of Costa RicafrominstcrimportBccrbccr=Bccr()## Show both buy and sell tablesbccr.print_data()## Print today's information (date= datetime to specify a different date)print(f"\nToday sell dollar price:{bccr.dollar('sell')}")print(f"\nToday buy dollar price:{bccr.dollar('buy')}")