Saravanan666/pypi-org huggingface dataset:
Package: c-index
Python native implementation of C Index described by Hubert & LevinDescriptionCalculates Hubert & Levin C index - internal cluster quality indexThe C Index was described by Hubert & Levin (1976) in “A General Statistical Framework for Assessing Categorical Clustering in Free Recall.” Psychological Bulletin, 83(6), 1072–1080.  Its purpose is to compare the dispersion of clusters of data relative to the total dispersion in a dataset.  Ideally, the value of the number of clusters that minimizes the C Index will also be the optimal number of clusters to partition a dataset.More DescriptionThe C Index is calculated ascindex = (Sw - Smin) / (Smax - Smin)Sw is the sum of within-cluster distance measurements (only point-wise combinations of data are summed within each cluster - not between clusters)
Smin is the sum of the Nw smallest point-wise distances between points within the entire dataset
Smax is the sum of the nw largest point-wise distances between points within the entire dataset
Nw is the total number of pairs of observations belonging to the same cluster. It is the same as total combinations of points within clusters taken two at a timeInstallationpipinstallc_indexExample usagefromc_indeximport(calc_c_index,calc_cindex_clusterSim_implementation,calc_cindex_nbclust_implementation,pdist_array)xs=np.array([[1,2,1.5,1.75,1.33,0.88],[5,5.5,4.88,6.33,5.01,4.95]])# Cluster 1, 2 x valuesys=np.array([[8.9,8.5,7.89,8.25,8.85,8.29],[1.25,1.14,1.85,0.85,0.79,0.96]])# Cluster 1,2 y valuesX=np.stack((xs.ravel(),ys.ravel()),axis=1)cluster_labels=np.array([0,0,0,0,0,0,1,1,1,1,1,1])cindex=calc_c_index(X,cluster_labels)# nbclust implementation takes an array of pointwise differencesdistances_array=pdist_array(X)# NbClust C Index python equivalentcindex=calc_cindex_nbclust_implementation(distances_array,cluster_labels)# clusterSim C Index python equivalentcindex=calc_cindex_clusterSim_implementation(distances_array,cluster_labels)The C Index is already implemented in a number of R Packages, includingclusterSim,clusterCrit, andNbClustThis packages implementation differs from these packages in a couple ways.ClusterSim differencesNote these two lines (R Code) :Dmin=sum(sort(ddist)[1:r])Dmax=sum(sort(ddist,decreasing=T)[1:r])THey include the whole distance array, which includes all permutations of distances between points (instead of combinations). This means the high end and low end are double counted. I don't think that is the correct way to
calculate C Index, but maybe they have a specific reason for doing so.NbClust differencesNote these lines (R Code) :Dmin=min(v_min)Dmax=max(v_max)result<-(DU-r*Dmin)/(Dmax*r-Dmin*r)Instead of sorting and calculating the Nw minimum and maximum distance measurements between points, they simply multiply 'r' by the minimum and maximum values of distances.  I'm not sure what their motivation was for doing that, but sometimes it does give a better estimate of the number of clusters than the described method above.
Package: cine
cineis a command-line tool for calculating infrared pumping efficiencies.
At large nucleocentric distances, one of the main mechanisms for molecular
excitation in comets is the fluorescence by the solar radiation followed by
radiative decay to the ground vibrational state.  This code calculates the
effective pumping rates for rotational levels in the ground vibrational state
scaled by the heliocentric distance of the comet.  These coefficients are
useful for modeling rotational emission lines observed in cometary spectra at
sub-millimeter wavelengths.Code releases are available onPyPI, and
development happens in thegithub project page.Installationcine can be installed usingpip:$pipinstallcineor by cloning the github repository:$# If you have a github account:$gitclonegit@github.com:migueldvb/cine.git$# If you do not:$gitclonehttps://github.com/migueldvb/cine.git$cdcine$pythonsetup.pyinstall$# Or if you do not have root privileges:$pythonsetup.pyinstall--userWhen the package is installed using either method, thecinescript will be
copied to a directory in the PATH environment variable and will be available
for general use.RequirementsThe code requires the standard scientific Python packages (numpy,scipy, andpandas) and astropy’s affiliated packageastroquery.  to access the HITRAN and Lamda
databases. Running the tests requiresnose.Examplecineis a command-line tool that is included in the package to generate
pumping rates for several molecules. For example, to obtain the effective
pumping rates between the seven lowest rotational levels in the ground
vibrational state of HDO you can run the following command onceCINEhas
been installed:$cine--molHDO--nlevels7This should create a file namedG_HDO.datwhich contains the pumping rates
Gijin units of s-1between the rotational levels
i and j shown in the first two columns. Note that the levels use zero-based
indexing.032.568872e-05042.570305e-05051.552757e-05126.253229e-05162.987896e-05216.196215e-05264.410062e-05307.547422e-05343.103947e-05355.048423e-05401.253741e-04435.128064e-05454.679292e-05507.481781e-05538.287649e-05544.643613e-05614.820172e-05627.201329e-05To include more levels in the calculation, change the-n/-nlevelscommand-line
option to a larger value.  cine has a-h/--helpargument that presents an
usage explanation describing each optional argument.These coefficients are useful for deriving molecular production rates from cometary
lines observed at sub-millimeter wavelengths combined with a code that
solves the radiative transfer equations such asLIME.Downloading HITRAN dataTo download the molecular data cine uses theastroquery.hitranandastroquery.lamdatools.  Set theLAMDA_DATAandHITRAN_DATAenvironment variables (otherwise, the default~/.astropy/cache/astroquery/Lamdaand~/.astropy/cache/astroquery/hitranwill be used),TestsIfnoseis installed the tests can be run from the root of the repository as:$pythonsetup.pytestContributingAny questions or bug reports can be raised in github’sissue trackerorpull requests.Project StatusLicenseCopyright 2017 Miguel de Val-BorroCINEis free software made available under the MIT License.
For details see the LICENSE file.
Package: cinefiles
Organizes, indexes, and pulls relevant info for your movie library presented in a clean, locally-resourced, set of webpages.Installation1) Installcinefilespip install cinefilesUsageDownloading to appropriaatly named folders (each folder’s name is the name of the movie it holds)
NOTE: Folders can contain subfolders with movies in them i.e. => “James Bond Movies/Goldeneye”import cinefiles.cinefiles as cf
directory = "/Volumes/HDD/Movies"
search = cf.Cinefiles(searchfolder=directory)
search.run()To rename folders automatically:
(this can’t be undone automatically yet)import cinefiles.cinefiles as cf
directory = "/Volumes/HDD/jumble_of_movies"
organize = cf.Cinefolders(searchfolder=directory)
organize.organizefolder()To remove all the added files:import cinefiles.cinefiles as cf
clear_run = cf.Cinefiles(configfile='cinefiles.ini')
clear_run.clear_run.purgecinefiles()
Package: cinefolders
cinefoldersChangelogDescriptioncinefoldersis a command-line utility for organizing organizing media folders into a structure formatted for Plex,
Emby, a flash drive, etc.. You can also automate this to automatically add videos to your media folder, keeping
it organized.It tries to reversibly rename files as best it can to follow guidelines set by MediaBrowser
formoviesandtelevision. As well as provide a
link to TheMovieDB for more info.If you want to get more info like the trailers, posters, reviews, etc.. Just see the
sister project to this one:cinefiles.cinefolders.py Videos/Changes this unorganized mess:/Videos  
  /Down Periscope.mp4
  /Down Periscope_UHD_.mp4
  /Grand Budapest Hotel (2014).mkv
  /Mulan (1998)/  
    /somecrazyunreleatedname.mp4
  /Avatar - 2x02 -.mkv
  /Movies-I-Like/  
    /Horror Movies/
      /The.Shining.1980.US.DC.1080p.BluRay.H264.AAC-RARBG.mp4... into this:/Videos
  /Movies
    /Down Periscope (1996)
      /Down Periscope (1996).mp4
      /Down Periscope (1996) - Ultra HD.mp4
    /Grand Budapest Hotel (2014)
      /Grand Budapest Hotel (2014).mkv
    /Mulan (1998)
      /Mulan (1998).mp4
    /The Shining (1980)  
      /The Shining (1980) - 1080p Director's Cut.mp4
            
  /TV Shows
    /Avatar the Last Airbender 
      /Season 2
        /Avatar the Last Airbender S02E02 The Cave of Two Lovers.mkvNote: You'll need a TMDb API Key (I can't just let all of you use mine!) Its easy to get
here:themoviedb.org apiPlus once you register
you can contribute to TMDb! Don't worry, just runcinefoldersand it'll prompt you for it.usage: cinefolders [-h] [-l] [-v] [-x X] [--dry-run] [--copy]
                   [--destination DESTINATION] [--version] [--debug]
                   directoryOptionspositional arguments:
  directory             Location of folder holding the videos

optional arguments:
  -h, --help            show this help message and exit
  -l                    List new file structure
  -v                    Verbosely list actions
  -x X                  Export all changes as a bash script
  --dry-run             Don't change anything
  --copy                copy instead of just moving files
  --destination DESTINATION
                        specify an alternate destination
  --version             show program's version number and exit
  --debug               debug option (only for developers)
Package: cinema
CinemaThis python scripts retrieves all the information of a movie given its title.
The following web sites are used to retrieve the rating of movies:IMDBRogerEbertMetacriticCurrently only IMDB is supported but the support for the rest will be added.Installationpip install cinemaor locally:python setup.py installUsage:After installing the package, you can use the following command to retrieve the information of a movie.
Note that you do not need to specify the movie’s exact name.watch-movie {MOVIE_NAME}Example:watch-movie ‘a separation’orwatch-movie ‘redemption’In case there are multiple versions of a movie, you can specify the production year too:watch-movie ‘The Lord of the Rings’ 2002
Package: cinema21
A simple wrapper for Cinema21 private API.Installationpip install cinema21ExamplesInitialize>>> import cinema21
>>> cinema = cinema21.Cinema21()Fetch available city>>> cinema.cities()
Cities(cities=[list of City object])Fetch currently playing movie by city>>> cinema.playing(10)  # 10 is the id of Jakarta
Movies(movies=[list of Movie object])ReferencesYou can read the source code. The whole code is self explanatory.
Package: cinemaflix
Cinemaflix==========|Join the chat at https://gitter.im/walidsa3d/cinemaflix| |downloads||version| |license| |PEP8|A console application for searching and streaming movies, anime andseries.Install (automatic)===================::$ pip install cinemaflixInstall (manual)================::$ git clone git@github.com:walidsa3d/cinemaflix.git$ cd cinemaflix$ python setup.py installRequirements============This program requires peerflix.::$ npm install -g peerflixYou should also have one of the supported players installed : VLC,Mplayer or MPV.Supported Torrent Providers----------------------------  Yts-  Kickasstorrents-  Strike-  The Pirate Bay-  Nyaa.se-  Eztv-  CpasbienDemo====.. figure:: https://cloud.githubusercontent.com/assets/821918/10253063/3cbba214-6933-11e5-9674-8aae44013463.gif:alt: demodemoLicense=======::The MIT License (MIT)Copyright (c) 2015  Walid SaadPermission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal inthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies ofthe Software, and to permit persons to whom the Software is furnished to do so,subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS ORCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE... |Join the chat at https://gitter.im/walidsa3d/cinemaflix| image:: https://badges.gitter.im/Join%20Chat.svg:target: https://gitter.im/walidsa3d/cinemaflix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge.. |downloads| image:: https://img.shields.io/pypi/dm/cinemaflix.svg.. |version| image:: https://img.shields.io/pypi/v/cinemaflix.svg.. |license| image:: https://img.shields.io/pypi/l/cinemaflix.svg.. |PEP8| image:: https://img.shields.io/badge/code%20style-pep8-orange.svg:target: https://www.python.org/dev/peps/pep-0008/
Package: cinemagoer
Cinemagoer is a Python package useful to retrieve and
manage the data of the IMDb movie database about movies, people,
characters and companies.Cinemagoer and its authors are not affiliated in any way to
Internet Movie Database Inc.; see the DISCLAIMER.txt file for
details about data licenses.Platform-independent and written in Python 3Cinemagoer package can be very easily used by programmers and developers
to provide access to the IMDb’s data to their programs.Some simple example scripts - useful for the end users - are included
in this package; other Cinemagoer-based programs are available at the
home page:https://cinemagoer.github.io/
Package: cinemagoerng
CinemagoerNG (Next Generation) is a Python library and command-line utility
for retrieving data from the IMDb.Usage example (subject to change):>>>fromcinemagoerngimportweb>>>matrix=web.get_title("tt0133093")>>>type(matrix)<class'cinemagoerng.model.Movie'>>>>matrix.title'The Matrix'>>>matrix.year1999>>>matrix.runtime136>>>matrix.genres['Action','Sci-Fi']>>>matrix.sort_title'Matrix'>>>len(matrix.directors)2>>>matrix.directors[0].name'Lana Wachowski'>>>matrix.taglines[]>>>matrix=web.update_title(matrix,page="taglines")>>>len(matrix.taglines)15>>>matrix.taglines[0]'Free your mind'>>>matrix_game=web.get_title("tt0390244")>>>type(matrix_game)<class'cinemagoerng.model.VideoGame'>>>>matrix_game.title'The Matrix Online'>>>matrix_game.runtimeAttributeError:'VideoGame'objecthasnoattribute'runtime'
Package: cinemaot
Causal INdependent Effect Module Attribution + Optimal Transport (CINEMA-OT)CINEMA-OT is acausalframework for perturbation effect analysis to identifyindividual treatment effectsandsynergyat thesingle celllevel.ArchitectureRead our preprint on bioRxiv:Dong, Mingze, et al. "Causal identification of single-cell experimental perturbation effects with CINEMA-OT". bioRxiv (2022).https://www.biorxiv.org/content/10.1101/2022.07.31.502173v3System requirementsHardware requirementsCINEMA-OTrequires only a standard computer with enough RAM to perform in-memory computations.OS requirementsTheCINEMA-OTpackage is supported for all OS in principle. The package has been tested on the following systems:macOS: Monterey (12.4)Linux: RHEL Maipo (7.9), Ubantu (18.04)DependenciesSeesetup.cfgfor details.InstallationCINEMA-OT requirespythonversion 3.7+.  Install directly from pip with:pip install cinemaotThe installation should take no more than a few minutes on a normal desktop computer.UsageFor detailed usage, follow our step-by-step tutorial here:Getting Started with CINEMA-OTDownload the data used for the tutorial here:Ex vivo stimulation of human peripheral blood mononuclear cells (PBMC) with interferon
Package: cinemate
Cinemate - реализация API сайтаcinemate.ccна языке python.
Реализация использует методыapi v2.УстановкаИспользуйте следующую команду для получения последней версии:pip install cinemateСтраница наPyPI.Документация наRead the Docs.ИспользованиеНиже приведены простые примеры, подробные примеры находятся в каталогеexamples.Инициализация:>>>fromcinemateimportCinemate>>>cin=Cinemate('username','password','passkey','apikey')Получить подробную информацию о персоне:>>>person=cin.person.get(57658)>>>print(person)<Person57658NoelFielding>>>>print(person.photo.big)http://c.cinemate.cc/media/p/8/5/57658/0.big.jpgПолучить подробную информацию о фильме:>>>print(movie)<Movie114458Africa>>>>print(movie.title.original)Africa>>>movie.runtimeisNoneTrue>>>print(movie.imdb)<Ratingrating=8.9votes=1984>>>>print(movie.imdb.rating)8.9Получить список слежения пользователя:>>>watchlist=cin.account.watchlist()>>>forpersoninwatchlist['person']:...print(person.name_original)...KarWaiWongGreggArakiJanSvankmajerGasparNoeУчастие в разработкеПроверяйте внесенные изменения на соответсвиеpep-20,pep-8,pep-287.
Пожалуйста, документируйте код на русском языке, т.к. проект cinemate.cc рассчитан на русскоговорящую аудиторию.Тесты запускаются черезtoxи должны выполняться в версиях py27, py32, py33, py34, pypy, pypy3.В остальном никаких особенностей нет, форкаете, меняете, pull-request.
Package: cinematips
✨ Cinematips ✨Alexandra Mille-Egea
Zachary GagnouIntroThis project is a website that uses IMDB API for getting a movies rating. The project establish's it-self in two classes,API and web scapping, andDigital Traces. It has bein authored by Alexandra Mille-Egea and Zachary Gagnou.How it worksUsing the web app is very simple, as you get on the home pages you are derectly greated by a search bar where you enter the name of the movie you wish to know the score and it will show you all the best results.Where to find itThe web app is hosted by streamlit app at:https://cinematips.streamlit.app/But if you are fealing adventurous you can run the docker version. First get the docker file from docker hub:foo@bar:~$sudodockerpullzakenobi/cinematipsNow you can run the image:foo@bar:~$sudodockerrun-p8501:8501zakenobi/cinematipsYou can now access the app athttp://localhost:8501. (You can also run the image with the -d flag to keep it running) Sorry Mac and Windows users you're on your own for this one.CIGitHub Actions for python syntax error and proper habits with flake8. There is also code run test but their are no other unit testing.CDAutomatic with streamlit hub that checks the github repo for changes. The way they manage to do that is thanks toWatchtower, We recomend that you check it out it's very cool!In addition their is an automatic build and publishing of the docker image for the app toDocker hub.Google AnalyticsThis web site is using google analytics for educational purpose only monitoring the traffic.ImprovmentsUsage of streamlit is nice and easy to get a fast modern result but it is very heavy and slow. A nice improvment would be to use a more optimized frontend framwork such as React and having the python code served by a lightweight server like Django.
Package: cinemator
cinematorCommand Line Tool for digging up all sort of mediasAssumptionsAssumed that If someone knows the imdb id, they are looking for a specific medias details therefore that feature is not search but in get details.OMDB API does not have extended documentation for python libraries (omdbandomdbapi) therefore used requests instead of using the dedicated libraries. Please see for further background;linkedin blogRotten Tomatoes details are no longer available at OMDB. I have included the feature to enable the information with a note that a future implementation can be done to retrieve it from fandango directly. I have requested api keys for this. Please see for further background;omdb rating changes,where to get tomatoes infoAsummed that the API key will be passed from a local file for the security concerns. This would be a centralised secret management parameter if the service was deployed to production.Resources and Design DecisionsUsed cookie cutter for project structure.cookiecutterUsed a tool using the cookie cutter to cut cli projects.cli cutterUsed requests for restful events as mentioned at AssumptionsThe cli cookie cutter comes with "click". I would use click for a command line implemenetation in any case as it is most convenient cli implementation tool.Providing extensive options and configurations for arguments as well.Mainly used unittest.mock for tests, avoided calling functions for real.Setup And ConfigurationAPI KEYIn order to access to omdb api, you need to retrieve an api key. Please find the request pagehere.Updateconfig.pywith path to the api key fileInitialize virtual machine and run the codepython3 -m venv venvsource . venv/bin/activatemake sure that you are at /cinemator/make setupln -s path_to/cinemator/cinemat/__main__.py cinematorCINEMATOR Commandscinemator detailsgets the extended details for the sepcific media,cinemator imdbgets the info for the specific imdb id ,cinemator infogives information about the tool and the background,cinemator searchsearches medias by keyword without specification,cinemator typeserches medias by type and title,cinemator yearsearches medias by year and titleMAKE Commandsmake cleanto clean unnecessary files before commitsmake lintto check linting with flake8make lint-fixto fix code with blackmake setupto build and install the application
Package: cinephile
cinephilePython CLI tool to scan movie directory recursively, normalize the filename and retrieve useful information from imdb. Cinephile can also be used to fetch subtitle file for a particular movie in preferred language. See instructions below on how to use the tool.FeaturesFilename normalizationYaml config for customizationFilter based on imdb rating alone or along with genreIgnore duplicate movie namesDownload subtitles for a movie file in preferred languageInstallationPlease read INSTALLConfigurationAfter installation the config file .cinephile.yaml can be found under user’s home directory.UsageTo get IMDB infocinephile movie-smovie_dir-rimdb_rating[-ggenre]To download subtitlescinephile subtitle-fmovie_file-llanguageExamplecinephile movie-s/media/disk/movies-r7cinephile movie-s/media/disk/movies-r7-gactioncinephile subtitle-f~/Movies/The\ Croods\\(2013\)/The.Croods.2013.720p.BluRay.x264.YIFY.mp4-lenHistory1.0.1 (2014-03-04)First release on pypi.1.0 (2014-02-17)First release on github.RoadmapSince the project is in early stages no clear roadmap has been set but your
suggestions are welcome.
Package: cinestats
cinestatsAnalyse and visualise statistics around movies and cinema.Installation and requirementsCinestats requires Python version 3.5 or higher.
You can install the cloned working copy usingpip:$gitclonehttps://github.com/atmtools/typhon.git
$pipinstallcinestatsTestingTests can be run on the command line usingpytest:$pytest--pyargscinestatsUsageCinestats is build around theMovieDatabaseclass. It combines all
functionality to work on sets of movies.importmatplotlib.pyplotaspltfromcinestatsimportMovieDatabasemdb=MovieDatabase.from_csv('cinestats/data/example.csv')fig,ax=plt.subplots()mdb.plot_marker()plt.show()CSV data formatMovie databases can be stored as CSV file. Currently, the two fieldsdateandmovieare supported:date,movie
2017-01-01,Shaun of the Dead
2017-01-03,World's End
2017-01-02,Hot Fuzz