Skip to main content

더 캠프 인터넷편지 비공식 라이브러리

Project description

PyPIGitHubGitHub Workflow Status

thecampy - 더 캠프 파이썬 라이브러리

thecampy는 parksb/the-camp-lib을 참고하여 제작된 대국민 국군 소통 서비스 더 캠프의 파이썬 라이브러리입니다.

파이썬으로 인터넷 편지를 보낼 수 있도록 구현되었습니다. 매 월요일 12시(UTC) 더 캠프 request code를 테스트합니다.

첫 파이썬 라이브러리다보니 부족한 부분이 많습니다. 오류사항은 Issue 부탁드립니다.

Installation

pip install thecampy

Quickstart

import thecampy

my_soldier = thecampy.Soldier(

        [이름],

        [생일(yyyymmdd)],

        [입대일(yyyymmdd)],

        [부대명(ex: 육군훈련소)],

)

msg = thecampy.Message([제목], [내용(1500자 이하)])

image = thecampy.ThecampyImage('sample.png')

tc = thecampy.client()

tc.login(email, pw) #Prints 'Successfully Logged in'

tc.get_soldier(my_soldier) #returns soldier code

tc.send_message(my_soldier, msg, image) #returns True

자세한 사항은 프로젝트 홈페이지에서 확인할 수 있습니다.

LICENSE

This project is licensed under the MIT License.

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

thecampy-2.1.0.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

thecampy-2.1.0-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

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