Skip to main content

Python Wrapper for pymsteams

Project description

pymsteams

This module provides wrapper for pymsteams.

Installation

pip install takeme-pymsteams

Usage

import takeme_pymsteams

SP_SITE = 'https://xxxx.sharepoint.com'
SITE_NAME = 'XXXX'
SP_ID = 'user'
SP_PWD = 'abcd'
TEAMS_CHANNEL = 'https://outlook.office.com/webhook/xxxxx/IncomingWebhook/xxx/xxxx/xxxx'

teams = takeme_pymsteams.Teams()
try:
    teams.connect_to_share_point(
        share_point_site=SP_SITE,
        site_name=SITE_NAME,
        user_name=SP_ID,
        password=SP_PWD
    )
    teams.send(
        channel=TEAMS_CHANNEL,
        text='Hello Microsoft Teams!',
        file='Hello.xlsx'
    )
except Exception as ex:
    print(str(ex))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

takeme_pymsteams-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

takeme_pymsteams-1.0.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file takeme_pymsteams-1.0.0.tar.gz.

File metadata

  • Download URL: takeme_pymsteams-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for takeme_pymsteams-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e428275548740001cc22ccaca3044b8f1675b193668bda5ed8b678cf9bebc8ca
MD5 b000f2c073a0359c107305fa8c063d2a
BLAKE2b-256 987f5d81a96deaf953a5502c6a63405c09fd1b32b79b1ab5e99f97f5c6483bb0

See more details on using hashes here.

File details

Details for the file takeme_pymsteams-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: takeme_pymsteams-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for takeme_pymsteams-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48272fc670b06619df908fcb76eae58d42b59fdb3f8f9c1dc6cde7e648133757
MD5 9d8ec984d47ed7c8accc0f8455ae3dfb
BLAKE2b-256 27ab1d7cb167c48919106f9c2c69c37390d66f3a16928db5cc05b2371f4e487e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page