Skip to main content

useful contents of mine

Project description

distribution for the first time

describe: my first python package uploaded on https://pypi.org/ and uploaded on github for distribution

PYPI에 package를 업로드하고 깃허브와 연동하여 배포


View at: https://pypi.org/project/doxg

INSTALL

$ pip install doxg

DEV

$ git clone ...
$ cd doxg
$ pdm venv create
$ source .venv/bin/activate
(hello-doxg-3.8) $ pdm install

DEPLOY

$ pdm publish

Contributing

$ git branch 0.2.0/doxg

$ git switch 0.2.0/doxg
Switched to branch '0.2.0/doxg'

$ vi pyproject.toml

$ git status
On branch 0.2.0/doxg
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   pyproject.toml

no changes added to commit (use "git add" and/or "git commit -a")

$ git add .

$ git status
On branch 0.2.0/doxg
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        modified:   pyproject.toml

$ git commit -m "start dev 0.2.0"
[0.2.0/doxg 4ed0751] start dev 0.2.0
 1 file changed, 1 insertion(+), 1 deletion(-)
 
$ git push
fatal: The current branch 0.2.0/doxg has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin 0.2.0/doxg

$ git push --set-upstream origin 0.2.0/doxg

function examples

doxg-imp

# basic
import numpy as np
import pandas as pd
import math

# visualize
import matplotlib.pyplot as plt
import seaborn as sns
import plotly.express as px
from plotly.subplots import make_subplots
import plotly.figure_factory as ff
import plotly.graph_objs as go

# crawling
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options


import pickle

doxg-pic

                           :!????7~                         :^~^.

                         .YY!:..:^?5!   .:^~~!!7777!!~^:. !555Y555~

                         P?        .Y5?J??7!~~^^~JYYYY5555PJ77777J#~

                        .#:          ^:          !?77777??7?????77#!

                         JP:                     :7???????????77JGJ

                          ~YJ7.          .::::    .~7?????YYYYJ7PG

                            !#.       .~!~^^^^       :^!77???????#~

                            YJ        ~^                 .:^~~~!!PY

                            B~            ^77~.          ^YPGP?. ?P

                           :#:          .P#YP@&?        ~@B^?@@G !P?^

                           :#.          !@#7Y@@#        ^#@#&@@P   ~P?

                           .#:     ..... ?B@@&P^   ....  .755J~ :!!~!B!

                            G!    :!7777!. ::.   .YYYYYJ        :~~~:YY

                            J5     .:^^^:.        5YYY5Y             G!

                            :#:                   ~PYYP^            YY

                             J5                    ~55~           ^5?

                              B~                    .:::^~~!!!!~~5G~

                             !G.      ::.     :^!?JJJJJ#J!!!!!!!7???JJ?7~:

                            :B^       !??????GPJ7~^^:::PJ   ..     ...:~7JY?^

                            P?            ..^~7JJJ7!7~:!B:..............  .PY

                           7G                    :!J7G!:PJ ...............^B:

                          .B^                 ..::^^~G7:~#^.............. 5J

                          J5        .!!77???YPJJJ??77~:::JG............. ~B.

                         .B^        .~^^:.. :#~::::^YYY?::PY ............G7

                         ?P                  Y5::::!B^!&~:^G? ......... ?P

                         G!                  .B!::::^:~7:::^G? ....... ~B:

                        ~B                    7B^::?7:::::::^GJ...... ~B~

                        ?P                     Y5:^#?^:::::::^55.... !B~

                        7G         :?JJ!        PJ:~J~:::::::::JP^ :JP:

                         PJ        ?7.^#:       .GJ^^^^^^^~~~~~!Y#Y57

                          ?57:        .#:  ......^5JJJJJJ????Y#7~^~.

                           .!JJ?!~^:. ?#??????????7??????????J^

                              .:~!77??5^                  ..

doxg-who

I am simon

test

==================================== 3 passed in 0.02s ====================================
(doxg-3.8)  doxg@LAPTOP-M2348M93  ~/code/doxg   0.3.0/docker ±  pytest --cov
=================================== test session starts ===================================
platform linux -- Python 3.8.18, pytest-7.4.2, pluggy-1.3.0
rootdir: /home/doxg/code/doxg
plugins: cov-4.1.0
collected 3 items

tests/test_app.py ...                                                               [100%]

---------- coverage: platform linux, python 3.8.18-final-0 -----------
Name                   Stmts   Miss  Cover
------------------------------------------
src/doxg/__init__.py       0      0   100%
src/doxg/app.py            8      0   100%
tests/__init__.py          0      0   100%
tests/test_app.py         10      0   100%
------------------------------------------
TOTAL                     18      0   100%


==================================== 3 passed in 0.04s ====================================

from doxg.game import coin_game

coin_game(num) # num은 게임 인원 수

==========================================================================================
A가 마셔야할 술 5잔, 싫다면 코인을 던지세요
코인이 모두 뒷면(■,■)일 경우 당첨!! 코인을 던지시겠습니까?(Y/N) :Y
1......
2............
3..................
코인 결과: ('■', '■') !!!!
==========================================================================================
🌺팡팡💥파라바라~팡팡팡 🎊ヲヲヲヲヲヲヲヲヲヲヲ🌺팡팡💥파라바라~팡팡팡 🎊ヲヲヲヲヲヲヲヲヲヲヲ🌺팡팡💥파 라바라~팡팡팡 🎊ヲヲヲヲヲヲヲヲヲヲヲ🌺팡팡💥파라바라~팡팡팡 🎊ヲヲヲヲヲヲヲヲヲヲヲ🌺팡팡💥파라바라~팡팡팡 🎊ヲヲヲヲヲヲヲヲヲヲヲ
>>>>>>>>>>>>>  A 당첨!! 5잔을 마셔야합니다!

from doxg.game import coin_game

coin_game( number of players : int):

image

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

doxg-0.4.4.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doxg-0.4.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file doxg-0.4.4.tar.gz.

File metadata

  • Download URL: doxg-0.4.4.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.8.18

File hashes

Hashes for doxg-0.4.4.tar.gz
Algorithm Hash digest
SHA256 5435378475e3822c682a18bcc6f877b17867000eb9a0a0499837164c0487a249
MD5 17474af638cbb8fa68b446d3bf4953bf
BLAKE2b-256 e34b9eff60ae48850f2ccac5fa1aa9175deb9d18116ae037b85a7adc50405c61

See more details on using hashes here.

File details

Details for the file doxg-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: doxg-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.8.18

File hashes

Hashes for doxg-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6a09c1ae02c5fe9b667f655ab85c8ef2870808adf8d5650bb905881a21521549
MD5 c7a2caa31241bd243d70e5e6af58aeaf
BLAKE2b-256 77e8c5c9630a5bb815c1c38781ebb9ff222792c7e03c0cebd3d73f5ab8cafc54

See more details on using hashes here.

Supported by

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