Cov txheej txheem:

Kuv yuav ntim ib qhov project python li cas?
Kuv yuav ntim ib qhov project python li cas?

Video: Kuv yuav ntim ib qhov project python li cas?

Video: Kuv yuav ntim ib qhov project python li cas?
Video: nkauj huab lauj . koj tsis yuav kuv 2024, Kaum ib hlis
Anonim

Pib nrawm

  1. Lay out koj qhov project . Qhov tsawg tshaj plaws python qhov project yog ob cov ntaub ntawv.
  2. Piav koj qhov project . Cov ntaub ntawv setup.py yog ntawm lub plawv ntawm a Python project .
  3. Tsim koj thawj zaug tso tawm.
  4. Sau npe rau koj pob nrog rau Python Pob Index (PyPI)
  5. Upload koj qhov kev tso tawm, tom qab ntawd rub koj daim phuam thiab txuag lub Universe!

Yog li ntawd, koj yuav tsim ib qhov project hauv Python li cas?

Tsim a Python file # Xaiv cov qhov project root hauv Qhov project lub qhov rais, ces xaiv Cov Ntaub Ntawv | Tshiab los ntawm cov ntawv qhia zaub mov tseem ceeb lossis nias Alt + Ntxig. Xaiv qhov kev xaiv Python cov ntaub ntawv los ntawm lub popup, thiab ces ntaus lub npe tshiab filename.

Qhov thib ob, qhov teeb tsa py yog dab tsi? teeb tsa . py yog a python cov ntaub ntawv , uas ib txwm qhia rau koj tias cov module / pob koj tab tom yuav teeb tsa tau ntim thiab faib nrog Distutils, uas yog tus qauv rau kev faib khoom. Python Cov qauv. Qhov no tso cai rau koj kom yooj yim nruab Python pob khoom. Feem ntau nws txaus sau: $ pip install.

Ib sab ntawm no, kuv yuav luam tawm ib pob hauv Python li cas?

Ntawm nplooj ntawv hauv qab no, kuv yuav qhia koj cov kauj ruam hauv qab no:

  1. Ua kom koj cov cai tshaj tawm-npaj.
  2. Tsim ib pob python.
  3. Tsim cov ntaub ntawv PyPi xav tau.
  4. Tsim ib tus account PyPi.
  5. Upload koj pob rau github.com.
  6. Upload koj pob rau PyPi.
  7. Nruab koj tus kheej pob siv pip.
  8. Hloov koj pob.

Koj ntxiv kev vam meej hauv Python li cas?

Txhim kho Python kev vam khom los ntawm PyPi

  1. Qhib nplooj ntawv ib puag ncig hauv Google Cloud PlatformConsole.
  2. Nyem rau lub npe ntawm ib puag ncig koj xav nruab, hloov tshiab, lossis tshem tawm Python dependencies rau.
  3. Xaiv lub PyPi dependencies tab.
  4. Nyem qhov Kho kom raug khawm.
  5. Txhawm rau ntxiv qhov kev vam khom tshiab:
  6. Txhawm rau hloov kho qhov kev vam khom uas twb muaj lawm:

Pom zoo: