Saravanan666/pypi-org huggingface dataset:
Package: vimbuffer
vimbufferEdit files and strings in temporary vim (or some other console editor) buffers.InstallationRequires:python3.6+pip3 install vimbufferUsageThere's just the one function,buffer:vimbuffer.buffer(string: Union[str, NoneType] = None,
                 file: Union[str, NoneType] = None,
                 editor: Union[str, NoneType] = None,
                 fallbacks: Union[List[str], NoneType] = None,
                 name_prefix: Union[str, NoneType] = None) -> str
    Provide one of:
        string: A string to edit in a vimbuffer
        file: A file to edit in a vimbuffer
    If neither is provided, uses an empty string
    editor: editor to override the passed fallbacks/environment variable
    fallbacks: A list of fallbacks for alternate editors (e.g. ['vim', 'vi', 'nano'])
    name_prefix: string prefix for the filename when opening in an editor

    If string is provided, opens the file in an editor, lets the user edit it,
    and returns the string.
    If a file is, it reads the file, lets the user modify the contents, and writes
    back to the file. It also returns the edited file contents.The editor can be overwritten by specifying environment variables, see below for resolution order.Examplesimportvimbuffer# edit a stringprompt_string="Edit this and put what you want here!"edited_text=vimbuffer.buffer(string=prompt_string)# opens vim# edit a filevimbuffer.buffer(file=os.path.expanduser("~/.bashrc"),name_prefix="bashrc-")This usestempfileto create temporary files on the system, and launches vim against them. If the environment variable$EDITORis set to a graphical text editor, the process (which in this case would just launch the graphical editor) would end before the user had a chance to edit it. I recommend using terminal text editors instead.You can specify a list of fallback editors; one you'd like to use instead of$EDITOR:project_description="""## <my-project>By <your-name>"""edited_desc=vimbuffer.buffer(project_description,fallbacks=["nvim","vim","vi","nano"])Alternatively, if you want to leave your$EDITORas a graphical text editor, you can set the$VIMBUFFER_EDITORenvironment variable, which trumps all other choices. Specifically, the resolution order is:$VIMBUFFER_EDITOReditorfallbacks(s) passed as keyword arguments in python$EDITORvimviThename_prefixexists as a kwarg since temporary files have names that are randomly generated. By passing a prefix, the name becomes something like/tmp/bashrc-sd43Jds, so it may give a hint as to which file/what you're editingTestspytest
Package: vimbuilder
vimbuilderSphinx extension to create Vim help files.Converting API documentation of programming languages to Vim help format just
got easier.Installpip3installvimbuilderUsageAdd the extension to yourconf.pyfile:extensions=[...,"vimbuilder",...,]Build Vim help files withsphinx-buildcommandsphinx-build-Mvimhelp./docs./buildConfigurationsYou can add the following configurations to yourconf.pyfile:OptionDefaultDescriptionvimhelp_tag_prefix''String to prefix all tags. Useful for separating namespaces in case of multiple sources of documentation.vimhelp_tag_suffix''String to suffix all tags. See above.vimhelp_tag_filenameTrueWhether to suffix filename to all tags in the file. Clarifies topic of help tag.vimhelp_tag_topicFalseSame as above except without file extension.vimhelp_filename_extension'txt'Generated filenames will have this extension.vimhelp_filename_suffix''First tag in a help file is the filename itself. This option adds a suffix to just that tag.Projects using VimbuilderPython documentationfor Vim and Neovim
Package: vim-client
vim-client - send commands to the Vim editorThecommand-line toolsvim-client-edit,vim-client-diffand thePython modulevim_clientwill allow you to connect to a Vim server and make it:Edit files or directories in new tabs,Compare files (similar to vimdiff),Evaluate expressions and return their result,Send commands to Vim.It will allow you, for example, to make Vim edit or diff files from outside of Vim (e.g. from a shell like Bash, Zsh, etc.).LicenseCopyright (c)James Cherti.Distributed under terms of the MIT license.RequirementsPython >= 3.0The Vim editor ('vim' or 'gvim' in $PATH. Vim must be compiled with |+clientserver|, which is the case of most Vim distributions, because the Python modulevim_clientuses command-line argumentsvim --remote-*)Installationsudo pip install vim-clientThe 'vim-client-*' command-line toolsEdit a file in the current window/tab:vim-client-edit file1Edit multiple files/directories in separate tabs:vim-client-edit --tab file1 file2 file3Edit multiple files/directories in stacked horizontal splits:vim-client-edit --split file1 file2Edit multiple files/directories in side-by-side vertical splits (To open vertical splits on the right of the current window, use the Vim optionset splitright):vim-client-edit --vsplit file1 file2Edit and compare up to eight files in a new tab:vim-client-diff --tab file1 file2RecommendationsAdd aliases to ~/.bashrcIt is recommended to add the following aliases to your~/.bashrc:aliasgvim='vim-client-edit --tab'aliasvim='vim-client-edit --tab'aliasvi='vim-client-edit --tab'aliasvimdiff='vim-client-diff --tab'Start diff mode with vertical splits (vim-client-diff)Add the following line to your~/.vimrc:set diffopt+=verticalCreate desktop launchersFile:/usr/local/share/applications/vim-client-edit.desktop[Desktop Entry]
Name=vim-client-edit
GenericName=Vim Client Edit
Comment=Vim Client Edit
Exec=vim-client-edit --tab %F
Terminal=false
Type=Application
Keywords=Text;editor;
Icon=gvim
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;File:/usr/local/share/applications/vim-client-diff.desktop[Desktop Entry]
Name=vim-client-diff
GenericName=Vim Client Diff
Comment=Vim Client Diff
Exec=vim-client-diff --tab %F
Terminal=false
Type=Application
Keywords=Text;editor;
Icon=gvim
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;Linksvim-client @PyPIvim-client @GitHubVim documentation about +clientserver and 'vim --remote'(:help remote.txt)
Package: vimdatautils
vimdatautilsVim python package to ingest data into a databaseFeaturesInboundPipeline.py utility,  used by a specific integration componentData access layer (Dal),  provides simplified methods to access data in postgres dbInstallationvimdatautils requires Python 3pip install vimdatautilsOr to install/upgrade a specific versionpip install vimdatautils==<VERSION> --force-reinstallQuickstartInboundPipeline, you will need to implement two methods: pre_load_logic, post_load_logicfrom vimdatautils.inbound_pipeline import InboundPipeline
class Inbound(InboundPipeline):
def pre_load_logic(self):
        print("this will be executed before the load!")

    def post_load_logic(self):
        print("this will be executed after the load!")

    def main():
        inbound = Inbound("config_file.json", "postgresql://postgres:password@127.0.0.1/postgres")
        inbound.execute()Dal, import vimdatautils.dal, you will need to construct the dal with a postgres connection string in the below patternpostgresql://<db_user>:<db_password>@<db_host>/db_namefrom vimdatautils.dal import Dal

dal = Dal("postgresql://postgres:password@127.0.0.1/postgres")
dal.execute_cmd("select 1;")
Package: vim-decrypt
Command line tool for decrypting vim-blowfish-encrypted files.As of version 7.3 vim offers built in blowfish encryption/decryption.
Unfortunately the resulting files can only be read back by vim,
precluding batch processing or scripting. Also longevity of encrypted
data is a concern if a program with the dependencies and size of vim is
required to unlock it.This project provides a very simpevimdecryptPython module for
decrypting blowfish-encoded file objects, as well as thevimdecryptcommand line tool for decrypting files to stdout.encryption methodsVimdecrypt supports only blowfish2 encryption. Files encrypted using
either zip or blowfish should be converted using:set cm=blowfish2prior to using this tool.requirementsBesides Python 3, vimdecrypt requires any one ofPyCryto,PyCryptoDomeorblowfishto be installed.installationBoth the Python module and the command line tool are installable via
setuptools:$ python setup.py install (--user)usageWith~/.local/binin your executable path, decrypt any file to
stdout using:$ vimdecrypt [path]If the path argument is omitted then data is read from stdin:$ cat somefile | vimdecryptNote that the password is obtained via GNU getpass which does not
interfere with stdin/stdout redirection.The Python module defines only thedecryptmethod:>>> import vimdecrypt
>>> with open('somefile', 'rb') as f:
>>>   text = vimdecrypt.decrypt(f)creditsThanks to [@nlitsme](https://github.com/nlitsme) for demonstrating
blowfish decryption in Python. His identically namedvimdecryptproject supports
multiple encryption methods as well as password cracking.
Package: vimeo
A python wrapper for using theVimeo API.InstallationTo install python-vimeo, simply:pip install vimeoOreasy_install vimeoBasic UseTo use python-vimeo, you must first create aClientinstance,
passing at a minimum of key, secret and callback you obtained when youregistered
your app:import vimeo

client = vimeo.Client(key=YOUR_CONSUMER_KEY, secret=YOUR_CONSUMER_SECRET, callback=YOUR_CALLBACK_URL)The client instance can then be used to fetch or modify resources:videos = client.get('vimeo.videos.getAll', user_id=11867661, page=1)AuthenticationAllOAuth authorization flowssupported by the Vimeo API are
available in python-vimeo. If you only need read-only access to
public resources, go for basic use method as shown above. If however,
you need to access private resources or modify a resource,
you will need to have a user delegate access to your application. To do
this, you can use the following OAuth2 authorization flow.Authorization Code FlowThe Authorization Code Flow involves redirecting the user to vimeo.com
where they will log in and grant access to your application:import vimeo

client = vimeo.Client(
    key='YOUR_CONSUMER_KEY',
    secret='YOUR_CONSUMER_SECRET',
    callback='YOUR_CALLBACK_URL',
    username='USERNAME_FROM_YOU_APP'
)
redirect(client.authorize_url())Note thatusernameshould be the unique logged in username from your application.
The auth informations will be stored in the seperate cache for the specifed username.
Andcallbackmust match the value you provided when you
registered your application. After granting access, the user will be
redirected to this url, at which point your application can exchange
the returned token information for an access token. After getting the information just
pass the token verifier:token = client.exchange_token('TOKEN_VERIFIER')
access_token = token.key
access_token_secret = token.secretExamplesGet user’s Authorization:import vimeo

client = vimeo.Client(key=YOUR_CONSUMER_KEY, secret=YOUR_CONSUMER_SECRET, callback=YOUR_CALLBACK_URL, username='LOGGED IN USERNAME')
redirect(client.authorize_url())Get the authenticated user’s uploaded videos:import vimeo

client = vimeo.Client(key=YOUR_CONSUMER_KEY, secret=YOUR_CONSUMER_SECRET, callback=YOUR_CALLBACK_URL, username='LOGGED_IN_USERNAME', token=False)
token = client.exchange_token('TOKEN_VERIFIER_FROM_THE_REDIRECTED_URL')
client = vimeo.Client(key=YOUR_CONSUMER_KEY, secret=YOUR_CONSUMER_SECRET, callback=YOUR_CALLBACK_URL, username='LOGGED_IN_USERNAME', token=True)
videos = client.get('vimeo.videos.getUploaded', page=1)
Package: vimeo_dl
FeaturesRetreive metadata such as viewcount, duration, author, title, likes, commentsRetrieve the URL to stream the video in a player such as vlc or mplayerSmall, standalone, single importable module file (vimeo.py)Select highest quality stream for downloadWorks with Python 2.6+ and 3.3+Installationvimeo can be installed usingpip:$[sudo]pipinstallvimeo_dlUsage ExamplesHere is how to use the module in your own python code.  For command line tool>>>importvimeo_dlasvimeocreate a video instance from a Vimeo url:>>>url="https://vimeo.com/140816903">>>video=vimeo.new(url)get certain attributes:>>>video.title'[PHP][C++]Root Exploiter - No Back-Connect (Part 2)'>>>video.viewcounts,video.author,video.likes(647, u'Mukarram Khalid', 0)>>>video.author,video.duration('Mukarram Khalid', '10:00')list available streams for a video:>>>streams=video.streams>>>forsinstreams:...print(s)...normal:mp4@1162x720
normal:webm@640x398Download video with specific stream number:>>>streams[0].download(quiet=False)163,840 Bytes [0.56%] received. Rate: [ 275 KB/s].  ETA: [104 secs]get best resolution for a video:>>>best=video.getbest()>>>best.resolution,best.extension('1162x720', 'mp4')get url, for download or streaming in mplayer / vlc etc:>>>best.url'https://fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/01/3163/5/140816903/421224858...'Download video and show progress:>>>best.download(quiet=False)212,992 Bytes [2.64%] received. Rate: [ 203 KB/s].  ETA: [38 secs]
Package: vimeodownload.py
vimeodownload.pyA simple package that downloads public and private Vimeo videos.NOTE:This module is not extensively tested so use at your own risk. If you do find an issue, please report it on theGitHub repositoryUsagevimeodownload.get_video(url,destination,replace=False,quiet=False)Thequietargument will make the script not print any output.
Thereplaceargument will overwrite existing files.Exampleimportvimeodownloadvimeodownload.get_video("https://vimeo.com/148751763","./vid.mp4")vimeodownload.get_video("https://vimeo.com/148751763","./other/vid.mp4",replace=True,quiet=True)The above example will download a video to./vid.mp4with output and./other/vid.mp4without any output.
Package: vimeotools
vimeotoolsThese are Python Tools for Vimeo, using the Vimeo API and the official PyVimeo Python package.beta!This package is very much a beta version, it has no unit tests yet and is not well tested! Use it at your own risk!aboutThis package is aimed at being more convenient than using the Vimeo API or PyVimeo directly:
it provides the classes:VimeoConnectionVimeoDataVimeoVideoVimeoShowcase(album)VimeoFolder(project)which invoke the API for you. So you don't have to worry about the intricacies of the data structure or the URIs to use for specific queries or actions.These classes also store the data internally once they have retrieved them from Vimeo, so as to avoid unnecessary requests if data are queried multiple times. If an instance changes data, the internal data representation is updated accordingly.It is of course possible to re-query (refresh) the data via the API.You can also opt to create or set an object in live mode, so everytime a property is queried, the appropriate request is made on Vimeo first.documentationThe (Sphinx) documentation is very crude (created with autodoc) currently and will be improved in subsequent versions.History0.0.4 (2023-07-16)VimeoBaseItem: methodset_temp_data(for use in Restricted Python where methods with the setter-decorator do not work because attributes cannot be changed)VimeoBaseItem: new attribute_temp_attributesfor storing volatile "attributes" on the object and the methods needed:get_attributeget_attributesset_attribute0.0.3 (2023-07-13)VimeoShocaseundVimeoFolder: propertynb_videosVimeoDatachanged property namesvideo_count -> nb_videosshowcases_count -> nb_showcasesfolders_count -> nb_folders0.0.2 (2023-07-12)VimeoData gets the methodssaveandload, to save or load data as json or pickle.theinitof VimeoVideo, VimeoShowcase, VimeoFolder gets a parameterdata, where the data can be passed when the object is created, so no request is needed.Objects have a new attributetemp_data(dictionary) where you can store data relevant to your runing program directly on the object.TheVimeoDataobject can be added toVimeoVideo,VimeoShowcaseandVimeoFolderinstances. So the data object can be updated if there is a change in one of those instances.usingpathlib(instead of os.path): all filepath parameters accept Path objects.Still no unit tests, this is still very much in beta!0.0.1 (2023-07-07)This is the first version. It provides theVimeoConnection,VimeoData,VideoandVimeoShowcaseandVimeoFolderclasses.The package is still very much in beta, as many of the possible methods of this classes are not implemented yet and other classes (e.g. for Groups or Portfolios) shall be implemented later. It is also not well tested at the moment. Use it at your own risk!
Package: vimeo-wrapper
vimeo-wrapper=============A thin python wrapper for the vimeo API with upload-capabilities.  It took me quite a while to get this figured out; the VimeoAPI is rather PHP-centric.Installation:pip install git+http://github.com/okke-formsma/vimeo-wrapper#egg=vimeoUsage:vimeo = Vimeo(access_token, access_token_secret, consumer_key, consumer_secret)get vimeo info on a videoinfo = vimeo.request('vimeo.videos.getInfo', data=dict(video_id=video_id))Perform any request like so: (the list of available requests can be found at [the vimeo api site](https://developer.vimeo.com/apis/advanced/methods))result = vimeo.request(method, data=...)upload video filevideo_id = vimeo.upload(file="/home/okke-formsma/videos/test.mov")set video metadatavimeo.request('vimeo.videos.setTitle', data={'video_id': video_id,'title': "Vimeo-wrapper video",})vimeo.request('vimeo.videos.setDescription', data={'video_id': video_id,'description': "It is the best!",})vimeo.request('vimeo.videos.setDownloadPrivacy', data={'video_id': video_id,'download': False})
Package: vimeworld
vimeworldPython модуль для удобной работы с apiБыстрый старт#Импортируем необходимые модули из библиотеки vimeworldimportvimeworldfromvimeworldimportClient,usersbot=Client()bot.start()# Запускаем бота (начинаем взаимодействие с сервером)# Создаем экземпляр класса users, который предоставляет функции для работы с пользователями на сервере Vimeworldus=users(bot)player_id=us.get_by_nick('sad_Devil').user_id# Получаем ID игрока сервера по нику.player_name=us.get_by_nick('sad_Devil').username# Получаем ник игрока сервера по никуlevel=us.get_by_nick('sad_Devil').level# Получаем уровень игрока на сервере по никуlevelpercentage=us.get_by_nick('sad_Devil').levelPercentage# Получаем процент уровня игрока по никуrank=us.get_by_nick('sad_Devil').rank# Получаем привилегию игрока по нику, список привилегий смотрите ниже.playedtime=us.get_by_nick('sad_Devil').playedSeconds# Получаем сумму того времени когда игрок был на сервереlastseen=us.get_by_nick('sad_Devil').lastSeen# Получаем последний заходguild_id=us.get_by_nick('sad_Devil').guild_id# Получаем ID гильдии в которой есть игрок, поиск информации о гильдии будет реализован в 0.0.2print(f"{player_id}\n{player_name}\n{level}\n{levelpercentage}\n{rank}\n{playedtime}\n{lastseen}\n{guild_id}")# Вывод информацииВывод:4222985
sad_Devil
65
0.08196
HOLY
5103280
1706135176
24594Список привилегийРанги игроковРангНазваниеПрефиксЦветPLAYERИгрокVIPVIP[V]#00be00PREMIUMPremium[P]#00dadaHOLYHoly[H]#ffba2dIMMORTALImmortal[I]#e800d5BUILDERБилдер[Билдер]#009c00SRBUILDERПроверенный билдер[Пр. билдер]#009c00MAPLEADГлавный билдер[Гл. билдер]#009c00YOUTUBEYouTube[YouTube]#fe3f3fDEVРазработчик[Dev]#00bebeORGANIZERОрганизатор[Организатор]#00bebeHELPERХелпер[Хелпер]#1b00ffMODERМодератор[Модер]#1b00ffWARDENПроверенный модератор[Модер]#1b00ffCHIEFГлавный модератор[Гл. модер]#1b00ffADMINГлавный админ[Гл. админ]#00bebeДоп. информацияКромеus.get_by_nick('sad_Devil')можно использоватьus.get_by_id(id)Контакты:sad_Devil- VimeWorldxtraswed_- Discord
Package: vimg
Author: Johannes HansenWhy?If you are like me, you spend a lot of time in command line environments. One of the few things that
are hard to deal with in such an environment is images.This little tool is meant to allow for quick viewing of image files in the command line.The image is rendered using a combination of background color, foreground color and unicode character
for each character cell to optimally represent the original pixels. The challenge is the limited
color palette of 256 colors.In the simplest case, each character cell represents one pixel. However, the resolution can be
increased by printing unicode characters that better capture the structure of the image.
Alternatively, the color accuracy can be improved by mixing two available colors in foreground and
background, thus losing the gained resolution.The default mode attempts to optimize the rendering by optimizing resolution in areas of high
detail, and optimizing color accuracy in areas of low detail.Installation$pipinstallvimgRequirementsA terminal that supports 256 colors.The script is based oncursesandopencvfor Python.Usage$vimgpath/to/imageGUI modesOnce in the GUI, you can change between different viewing modes:Key shortcutModeDescriptionccolor(default) display optimal representation of imageffastdisplay image in fast mode (reduced resolution)aasciidisplay a black-and-white representation of the imageeedge(experimental) edge detection based rendering+/-–zoom in/out (by 30%)hjklor arrow keys–move view (by 10%)0–reset zoomr–refresh the screenq–quitNotesThe results will be better if you use a font that correctly displays unicode block element characters
with the full line height, such as DejaVu Sans.LimitationsThe script currently only supports image files that are natively supported by OpenCV (.jpg,.png,.bmp).To DoFuture plans include:Support for more image file types, e.g..gifImprovement of the edge detection modeMakeopencvdependency optionalImprove color gradients at contrast-rich edges
Package: vimgolf
vimgolfThis project contains avimgolfclient written in Python.The user interface is similar to theofficial vimgolf client,
with a few additions inspired byvimgolf-finder, and an
optional way to specify keys to type when launching a challenge.InstallationRequirementsPython 3.5 or greaterInstall$pip3installvimgolfUpdate$pip3install--upgradevimgolfUsageLaunchIf the launcher script was installed within a directory on yourPATH, vimgolf can be launched
directly.$vimgolfOtherwise, vimgolf can be launched by passing its module name to Python.$python3-mvimgolfCommandsvimgolf [help]                # display this help and exit
  vimgolf config [API_KEY]      # configure your VimGolf credentials
  vimgolf local IN OUT [KEYS]   # launch local challenge
  vimgolf put CHALLENGE [KEYS]  # launch vimgolf.com challenge
  vimgolf list [PAGE][:LIMIT]   # list vimgolf.com challenges
  vimgolf show CHALLENGE        # show vimgolf.com challenge
  vimgolf diff CHALLENGE        # show diff for vimgolf.com challenge
  vimgolf version               # display the version numberCHALLENGEcan be a 24-character ID from vimgolf.com, or a plus-prefixed ID corresponding to the
last invocation ofvimgolf list. For example, aCHALLENGEof+6would correspond to the sixth
challenge presented in the most recent call tovimgolf list.For thelocalcommand,INandOUTare paths to files.For thelocalandputcommands, the optionalKEYSspecifies a set of keys to enter when
launching the challenge. For example,ihello world<esc>would enter insert mode, type "hello
world", and then switch back to normal mode. The character<is assumed to start a special
sequence (e.g.,<esc>) if that would be possible given the characters that follow. The input
string should use<lt>to disambiguate.DemoLicenseThe source code has anMIT License.SeeLICENSE.