File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,20 +30,20 @@ certificates, HTTP Basic authentication etc.
3030
3131.. code-block :: python
3232
33- # initialize a client
34- from aptly_api import Client
35- aptly = Client("http://aptly-endpoint.test/")
33+ # initialize a client
34+ from aptly_api import Client
35+ aptly = Client(" http://aptly-endpoint.test/" )
3636
37- # create a repository
38- aptly.repos.create("myrepo", comment="a test repo",
39- default_distribution="mydist",
40- default_component="main")
37+ # create a repository
38+ aptly.repos.create(" myrepo" , comment = " a test repo" ,
39+ default_distribution = " mydist" ,
40+ default_component = " main" )
4141
42- # upload a package
43- aptly.files.upload("test_folder", "/tmp/mypkg_1.0_amd64.deb")
42+ # upload a package
43+ aptly.files.upload(" test_folder" , " /tmp/mypkg_1.0_amd64.deb" )
4444
45- # add the package to the repo
46- aptly.repos.add_uploaded_file("myrepo", "test_folder")
45+ # add the package to the repo
46+ aptly.repos.add_uploaded_file(" myrepo" , " test_folder" )
4747
4848
4949 License
You can’t perform that action at this time.
0 commit comments