Saravanan666/pypi-org huggingface dataset:
Package: messenger-business-api
This repository is a wrapper for Meta messenger api for Messenger and
InstagramSend a messagefrommessenger-business-apyimportMessengerApiaccess_token:"YOUR TOKEN",page_id:"YOUR PAGE ID"# like ID of page instagramapi_version:"YOUR PAGE VERSION"# default v16.0 - OPTIONALmessenger=MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)messenger.send_text_message(user_id='291380182300130918',message='This is a test!')#ps the user_id is fake only exampleDownload of filefrommessenger-business-apyimportMessengerApiaccess_token:'YOUR TOKEN,page_id:"YOUR PAGE ID"# like ID of page instagramapi_version:"YOUR PAGE VERSION"# default v16.0 - OPTIONALmessenger=MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)uri:"URL for downloading media file"messenger.get_media(uri=uri)
Package: messenger-counter
Messenger CounterMessenger Counteris a python script that counts messages from Facebook Messenger and shows various statistics.If you are interested in contributing to this repository, pull requests are much appreciated.Note: To use this software you need to download your data directly from Facebook (in JSON format).How to download my data?Installationpipinstallmessenger-counterCLI usageCount your messages using (insert path for your .zip file)python-mmccount"facebook-YourName.zip"Add flag--charsor-cto count characters (optional)python-mmccount-c"facebook-YourName.zip"Use following commands for different statistics (examples below)python-mmc[-h]command[options]Available commands:count [-c] file— Counts all messages/characters and saves
tomessages.jsonormessages_chars.jsonfile.stats [-c] [converstion]— Displays statistics for counted messages.
You can specify conversation for detailed statistics
and use -c for character statistics.user name— Detailed statistics for specific personyearly file [conversation]— Number of messages per year.
(please specify path to .zip file as for counting messages)
You can specify conversation for more precise statistics.daily [-d DIFF] file [conversation]— Number of messages daily.
(use-dor--differenceflag to time shift by some number
of hours and show statistics differently)hours [-d DIFF] file [conversation]— Average number of messages
by hour throughout the day. (additional options as above)ExamplesShow general statistics of all conversationspython-mmcstatsShow messages statistics for specific conversation.
(you can list all conversations by running previous example)python-mmcstatsJohnDoeProgram allows you to write only the beginning of the conversation name.
It will return first matching occurrence. (Works exactly as the previous example)python-mmcstatsJohShows how many messages did the person send grouped by conversation.python-mmcuser"John Doe"Shows how many messages on average have you send and received grouped by time of the day.python-mmcdaily"facebook-YourName.zip"Similar to previous one, but limited to one conversation.python-mmcdaily"facebook-YourName.zip"JohnBasic module usageGet started:importMessengerCounterasmcmc.set_source('facebook-YourName.zip')# insert path for your .zip filemc.count()mc.count(chars=True)data=mc.get_data()mc.statistics(*data)How to download messagesSelect Settings & Privacy in the top right of Facebook, then click Settings.In the left column, click Your Facebook Information.Click on Download Your Information.Deselect all and select "Messages" category by clicking the box on the right side.It is necessary to choose JSON format of your download request.Click Create File to confirm the download request.Facebook will notify you when your copy will be ready to download.Go to the Available Files section.Click Download and enter your password.LicenceMessenger Counteris licenced underMIT Licence.
Package: messenger_hook
Messenger Hook==============Description-----------This is a basic implementation of a facebook messenger Hook.It's working with falcon but should be easily modify to work with Flask or Django.Install-------You can run `pip install messenger_hook` to install it.Build a ping application------------------------```pythonimport falconfrom messenger_hook.falcon_messenger import FalconMessengerapp = falcon.API()hook = FalconMessenger('verify_key', 'your_token')app.add_route('/hook/', hook)```You need to install falcon to use it with falcon.You can launch it with gunicorn or uwsgiTransform message-----------------```pythonimport falconfrom messenger_hook.falcon_messenger import FalconMessengerclass MyMessenger(FalconMessenger):def transform_message(self, text, attachments):if text:return 'You sent {}'.format(message)elif attachments:return 'Yout sent an attachment'return 'You sent nothing'app = falcon.API()hook = FalconMessenger('verify_key', 'your_token')app.add_route('/hook/', hook)```
Package: messengerwrapper
# Python Messenger WrapperAn unofficial Facebook Messenger Wrapper for Python.# Installation```pip install messenger-wrapper```# Developpingfor developer```Python-Messenger-Wrapper$ pip3 install -e .```---testing```Python-Messenger-Wrapper$ python3 tests/tests.py```individual testing```Python-Messenger-Wrapper$ python3 -m unittest tests.test_set.TestSet.test_save_admin```# ExampleLogin```pythonfrom meesenger import loginsession, c_user, fb_dtsg = login.get_session(user, passwd)```Logout```pythonfrom meesenger import logoutlogout(session, fb_dtsg)```Pull```pythonfrom messenger import Pullp = Pull()while True:for data in p.get(session, c_user):...```## Integrated WrappingSame as individual usage without passing first three parameters(session, c_user, fb_dtsg)```pythonfrom messenger import Messengerm = Messenger(session, c_user, fb_dtsg)# get.get_threads(session, c_user, fb_dtsg, limit=10, before=None)m.get_threads(limit=10, before=None)```## Individual Use Scenarios### GettingGet friends```pythonfrom meesenger import getfriends = get.get_friends(session, c_user, fb_dtsg)for uid, f in friends.items():...```Get message```pythonfrom meesenger import getmessages = get.get_msg(session, c_user, fb_dtsg, recipient_id, 10, before=None)for m in messages:...```Get threads```pythonfrom meesenger import getthreads = get.get_threads(session, c_user, fb_dtsg, limit=10, before=None)for t in threads:...```### SendingSend message```pythonfrom messenger import sendbody = 'Hello, world'recipient_id = 'fb user id'send.send_msg(session, c_user, fb_dtsg, recipient_id, body, group=True)```Upload fileSend file### SettingSet emoji```pythonfrom messenger import settingthread_id = 'thread id'emoji = '👍'setting.set_emoji(session, c_user, fb_dtsg, thread_id, emoji)```Set nickname```pythonfrom messenger import settingthread_id = 'thread id'participant = 'member user id'new_name = 'new nickname'setting.set_nickname(session, c_user, fb_dtsg, thread_id, participant, new_name)```Set thread name```pythonfrom messenger import settingnew_name = 'new name'thread_id = 'thread id'setting.set_thread_name(session, c_user, fb_dtsg, thread_id, new_name)```Add people into group```pythonfrom messenger import settingthread_id = 'thread id'participants = ['participant 1', 'participant 2']setting.add_participant(session, c_user, fb_dtsg, thread_id, participants)```Remove from group```pythonfrom messenger import settingthread_id = 'thread id'participant = 'member user should be removed'setting.rm_participant(session, c_user, fb_dtsg, thread_id, participant)```Make admin```pythonfrom messenger import settingthread_id = 'thread id'member_id = 'member user should be made as admin'setting.save_admin(session, c_user, fb_dtsg, thread_id, member_id, add=True)```Remove admin```pythonfrom messenger import settingthread_id = 'thread id'member_id = 'member user should be removed from admin'setting.save_admin(session, c_user, fb_dtsg, thread_id, member_id, add=False)```Leave group```pythonfrom messenger import settingsetting.leave_group(session, c_user, fb_dtsg, thread_id)```
Package: messente-api
Messenteis a global provider of messaging and user verification services.  * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages.  Messente buildstoolsto help organizations connect their services to people anywhere in the world.  # noqa: E501
Package: messente-python
messente-pythonMessente SMS API library for Python 3.6+.Full documentation:https://messente.com/documentationInstallationThe library can be installed/upgraded via pip:pip install messente-python==2.0.1or by using setuptools:python setup.py build
python setup.py installExamplesYou can find sample scripts in the 'examples' directory.Configuration parametersConfiguration parameters can passed via:keyword arguments in constructorconfiguration file (*.ini)Authentication parameters can also be set in environment instead:MESSENTE_API_USERNAMEMESSENTE_API_PASSWORDConfiguration fileConfiguration can be stored in a *.ini file (please see config.sample.ini).
The path to the file can be passed to a contructor as "ini_path" keyword argument:frommessente.api.smsimportMessenteapi=messente.Messente(ini_path="some/path/filename.ini")Configuration file is divided into following sections:defaultsmsdeliverycreditpricingnumber-verificationAll the module specific sections can override any of
the parameters in the "default" section.Logging configurationThe library uses logging module from standard python library, and
logging should be configured by the application that uses this library.
For more information, please visit:https://docs.python.org/3/howto/logging.htmlLICENSEApache Licence, Version 2
Package: messgeraet-anzapfen
======================================Quick reference of messgeraet_anzapfen======================================The command :program:`anzapfen` is used to collect a sensor value and post itto the `logserver <https://gitlab.com/messgeraet/logserver>`_.Sensors can be loaded as plugins.Installation============The program is designed to run primarily on a Raspberry Pi with raspbian jesse.It is assumed that you use the standard user `pi` and your current directoryis the home of this user.Required packages-----------------You need to install the following linux packages: ::sudo apt-get updatesudo apt-get install python3-rpi.gpio python3-virtualenvCreate the virtual environment------------------------------To create a virtual environment for the program, the following command must beused: ::virtualenv -p python3 --system-site-packages venvThe virtualenv :file:`venv` was populated in the current directory. Now youhave to activate it: ::source ~pi/venv/bin/activateYour prompt should now be prepended by `(venv)`.Install the program :program:`anzapfen`---------------------------------------The program is available vi PyPi and is called `messgerat-anzapfen`: ::pip install messgeraet-anzapfenUsage of :program:`anzapfen`============================To use the program you first have to activate the virtual environment: ::source ~pi/venv/bin/activateFurther more you need a config file to tell the program which sensor should bequeried and where the logserver is. Fortunately there are some helpful commandline arguments for :program:`anzapfen` which come in handy.Check the installed plugins---------------------------The :option:`--print-known-sensors` of the program :program:`anzapfen`. Thisoption displays all installed sensors with a short description. If the sensor,you want to use is not listed here then install it (instructions are includedwith the sensor plugin).Create a config file--------------------The next option is the :option:`--print-config-file`. Use this option tocreate a new config file by redirecting the output to a file: ::anzapfen --print-config-file > configfile.ini.. note::The name of the config file can be any valid filename for linux. It isrecomended to use the suffix `.ini` and don't use spaces and umlauts in thename.The config file---------------In the `Default` section you can choose which sensor will be use by setting`sensor_type` to the name of the sensor (identical to the section caption ofthe sensor). The default value is the dummy sensor `Constant` that always sendthe entry of its variable `value` to the logserver.The `sensor_id` is the key in the database of logserver where the measuredvalue is stored with a timestamp.  The name can include the letters **a-z**,**A-Z**, the numbers **0-9** and the underscore. Further more it should notexceed 255 characters... tip::Best practise for a sensor name is the combination of the name of the sensorplugin and the location of the measurement.In the `Server` section you can set the url of the logserver.The variables `endpoint` and `sensor_id` should remain untouched!The settings for the sensor will be described within the plugin repository ofthe sensor.
Package: messh
messh.pyA useful SSH configuration manager.InstallsudopipinstallmesshHow to useGet help about messhmessh--helpDisplay all ssh-config in messhmessh listCreate ssh connection and auto save it in config list, use--only-createonly update config without creating ssh connection.messh connect root@host --port 7878 --name "Myself VPS"Use config by index to create ssh connectionmessh connect 0Execute command by ssh connectionmessh execute root@host "ls -l" --port 8080
# or use index
messh execute 0 "ls -l"Delete config by index(integer)messh delete 0SecurityAll config would be write to~/messh.confby JSON.Protect it!
Package: messier
MessierTest Ansible roles with Vagrant. Inspired by Test Kitchen.FeaturesSupports multi-machine rolesPermits reboots during provisioningUse any backend provider available in Vagrant (VirtualBox, AWS, DigitalOcean, etc.)Runs Serverspec tests per role viaansible_specIntegrates with preexisting Serverspec setupsMotivationTest Kitchenis a wonderful solution for testing system configuration—if you use Chef.
Its support for Ansible is, however, lacking. SimilarPacker,Test Kitchentries
to run Ansible in “local” mode, which makes it impossible to test multi-machine roles
for service orchestration. Well-meaning projects such askitchen-ansiblepush(not to
be mistaken with Ansible pull mode) enable more traditional Ansible usage patterns,
but still suffer from limitations such asreboots always triggering failure.In order to simplify setup, Test Kitchen makes the concession that testing VMs are
polluted with additional software in order to accommodate test running. Serverspec
has an SSH transport built into it, and Test Kitchen ignores that functionality completely.NameMessierwas a comet hunter, and didn’t much care for galaxies or nebula. He
only kept track of non-comet objects so he wouldn’t bother inspecting them
further. Similarly, themessiertool, particularly themessier cisubcommand, considers working configurations forgettable, and flag only
failures for follow-up work. The name is also brutally honest, in that the
heavy Vagrant dependency will make your configuration projects messier. :wink:TODOAddinitcommand for bootstrapping Messier configLicenseGPLv3 (would like to use MIT, but ifimport ansibleappears, then it must be GPLv3).History0.1.0 (2015-12-13)First release on PyPI.
Package: messy
[![](https://travis-ci.org/not4drugs/messy.svg?branch=master)](https://travis-ci.org/not4drugs/messy“Travis CI”)
[![](https://codecov.io/gh/not4drugs/messy/branch/master/graph/badge.svg)](https://codecov.io/gh/not4drugs/messy“Codecov”)
[![](https://img.shields.io/github/license/not4drugs/messy.svg)](https://github.com/not4drugs/messy/blob/master/LICENSE“License”)
[![](https://badge.fury.io/py/messy.svg)](https://badge.fury.io/py/messy“PyPI”)In what followspython3is an alias forpython3.5or any later
version (python3.6and so on).InstallationInstall the latestpip&setuptoolspackages versions`bash python3-mpip install--upgradepip setuptools `### ReleaseDownload and install the latest stable version fromPyPIrepository`bash python3-mpip install--upgrademessy `### DeveloperDownload and install the latest version fromGitHubrepository`bash git clonehttps://github.com/not4drugs/messy.gitcd messy python3 setup.py install `Bumping versionInstall
[bumpversion](https://github.com/peritus/bumpversion#installation).Choose which version number category to bump following [semver
specification](http://semver.org/).Test bumping version`bash bumpversion--dry-run--verbose$VERSION `where$VERSIONis the target version number category name, possible
values arepatch/minor/major.Bump version`bash bumpversion--verbose$VERSION `Note: to avoid inconsistency between branches and pull requests,
bumping version should be merged intomasterbranch as separate pull
request.Running testsPlain`bash python3 setup.py test `InsideDockercontainer`bashdocker-composeup `InsideDockercontainer with remote debugger`bash./set-dockerhost.shdocker-composeup `Bash script (e.g. can be used inGithooks)`bash./run-tests.sh`
Package: messytables
Tabular data as published on the web is often not well formatted
and structured. Messytables tries to detect and fix errors in the
data. Typical examples include:Finding the header of a table when there are explanations and
text fragments in the first few rows of the table.Guessing the type of columns in CSV data.This library provides data structures and some heuristics to
fix these problems and read a wide number of different tabular
abominations.See the full documentation at:https://messytables.readthedocs.io
Package: meta
MetaA Pure Python module containing a framework to manipulate and analyze
python abstract syntax trees and bytecode.ExampleThis shows how to take python source to a code object and back again from within python:importmeta,astsource='''
a = 1
b = 2
c = (a ** b)
'''mod=ast.parse(source,'<nofile>','exec')code=compile(mod,'<nofile>','exec')mod2=meta.decompile(code)source2=meta.dump_python_source(mod2)assertsource==source2This shows the depyc script. The script compiles itself, and then the compiled script extracts itself:DEPYC_FILE=`python-c"import meta.scripts.depyc; print meta.scripts.depyc.__file__"`depyc$DEPYC_FILE--pyc>depycX.pycpython-mdepycXdepycX.pyc--python>depycX.pyechodepycX.pyNotesMeta is python3 compliant (mostly)BugsThe decompliler does not yet support complex list/set/dict - comprehensionsTestingpython-munittestdiscovermetatestVersioningFrom the version 1.0.0, Meta followsSemantic Versioning.
The version X.Y.Z indicates:X is the major version (backward-incompatible),Y is the minor version (backward-compatible), andZ is the patch version (backward-compatible bug fix).Prior to version 1.0.0, custom versioning scheme was used.
Package: meta1
# Python Library for Meta1![](https://img.shields.io/pypi/v/meta1.svg?style=for-the-badge)
![](https://img.shields.io/github/release/meta1/python-meta1.svg?style=for-the-badge)
![](https://img.shields.io/github/downloads/meta1/python-meta1/total.svg?style=for-the-badge)
![](https://img.shields.io/pypi/pyversions/meta1.svg?style=for-the-badge)
![](https://img.shields.io/pypi/l/meta1.svg?style=for-the-badge)
![](https://cla-assistant.io/readme/badge/meta1/python-meta1)Stable[![docs master](https://readthedocs.org/projects/python-meta1/badge/?version=latest)](http://python-meta1.readthedocs.io/en/latest/)
[![Travis master](https://travis-ci.org/meta1/python-meta1.png?branch=master)](https://travis-ci.org/meta1/python-meta1)
[![codecov](https://codecov.io/gh/meta1/python-meta1/branch/master/graph/badge.svg)](https://codecov.io/gh/meta1/python-meta1)Develop[![docs develop](https://readthedocs.org/projects/python-meta1/badge/?version=develop)](http://python-meta1.readthedocs.io/en/develop/)
[![Travis develop](https://travis-ci.org/meta1/python-meta1.png?branch=develop)](https://travis-ci.org/meta1/python-meta1)
[![codecov develop](https://codecov.io/gh/meta1/python-meta1/branch/develop/graph/badge.svg)](https://codecov.io/gh/meta1/python-meta1)—## DocumentationVisit the [python website](http://docs.pybitshares.com/en/latest/) for in depth documentation on this Python library.## Installation### Install with pip3:$ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
$ pip3 install meta1### Manual installation:$ git clonehttps://github.com/meta-source/meta1-python$ cd meta1-python
$ python3 setup.py install –user### Upgrade$ pip3 install –user –upgrade meta1## Contributingpython-meta1 welcomes contributions from anyone and everyone. Please
see our [guidelines for contributing](CONTRIBUTING.md) and the [code of
conduct](CODE_OF_CONDUCT.md).### Discussion and DevelopersDiscussions around development and use of this library can be found in a
[dedicated Telegram Channel](hhttps://t.me/meta1exchange)### LicenseA copy of the license is available in the repository’s
[LICENSE](LICENSE.txt) file.### BountiesAs part of [HackTheDex](https://hackthedex.io), security issues found in this
library are potentially eligible for a bounty.
Package: meta1t
# Python Library for Meta1![](https://img.shields.io/pypi/v/meta1t.svg?style=for-the-badge)
![](https://img.shields.io/github/release/meta1t/python-meta1t.svg?style=for-the-badge)
![](https://img.shields.io/github/downloads/meta1t/python-meta1t/total.svg?style=for-the-badge)
![](https://img.shields.io/pypi/pyversions/meta1t.svg?style=for-the-badge)
![](https://img.shields.io/pypi/l/meta1t.svg?style=for-the-badge)
![](https://cla-assistant.io/readme/badge/meta1t/python-meta1t)Stable[![docs master](https://readthedocs.org/projects/python-meta1t/badge/?version=latest)](http://python-meta1t.readthedocs.io/en/latest/)
[![Travis master](https://travis-ci.org/meta1t/python-meta1t.png?branch=master)](https://travis-ci.org/meta1t/python-meta1t)
[![codecov](https://codecov.io/gh/meta1t/python-meta1t/branch/master/graph/badge.svg)](https://codecov.io/gh/meta1t/python-meta1t)Develop[![docs develop](https://readthedocs.org/projects/python-meta1t/badge/?version=develop)](http://python-meta1t.readthedocs.io/en/develop/)
[![Travis develop](https://travis-ci.org/meta1t/python-meta1t.png?branch=develop)](https://travis-ci.org/meta1t/python-meta1t)
[![codecov develop](https://codecov.io/gh/meta1t/python-meta1t/branch/develop/graph/badge.svg)](https://codecov.io/gh/meta1t/python-meta1t)—## DocumentationVisit the [python website](http://docs.pybitshares.com/en/latest/) for in depth documentation on this Python library.## Installation### Install with pip3:$ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
$ pip3 install meta1t### Manual installation:$ git clonehttps://github.com/meta-source/meta1t-python$ cd meta1t-python
$ python3 setup.py install –user### Upgrade$ pip3 install –user –upgrade meta1t## Contributingpython-meta1t welcomes contributions from anyone and everyone. Please
see our [guidelines for contributing](CONTRIBUTING.md) and the [code of
conduct](CODE_OF_CONDUCT.md).### Discussion and DevelopersDiscussions around development and use of this library can be found in a
[dedicated Telegram Channel](hhttps://t.me/meta1exchange)### LicenseA copy of the license is available in the repository’s
[LICENSE](LICENSE.txt) file.### BountiesAs part of [HackTheDex](https://hackthedex.io), security issues found in this
library are potentially eligible for a bounty.