myhelper


Namemyhelper JSON
Version 0.1.6a0 PyPI version JSON
download
home_pageNone
SummaryCode Snippets that I regularly use.
upload_time2024-06-04 06:15:38
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseUNLICENSE
keywords myhelper yt-dlp helper mypackage
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # SnippetHub
Code Snippets that I regularly use.

```python
from myhelper.yt_dlp_helper import Ytube

url="Your YouTube Url"

yt=Ytube(url)

list_of_formats=yt.formats

audios=yt.audios
videos=yt.videos 
progressive=yt.progressive

video=yt.download_by_resolution("144p")
audio=yt.download_audio_by_bt_rate(128)
audio=yt.download_audio_by_bt_rate("128kbps")
audio=yt.download_audio_by_bt_rate("128k")
```



```python
from pdftk import pdftk
# **To Merge Pdf:**
pdftk().merge( input_files=['file1.pdf','file1.pdf'],output='/your path/your pdf.pdf',user_pw='PrinceIsGod',owner_pw='HeIsTheOnlyOwnerOfWorld' )

# **To Burst Pdf:**
pdftk().burst_pdf('file1.pdf',output_folder='pk',input_pw='passwordofyourpdf')

# ** To Remove Password:**
pdftk().decrypt('file1.pdf',input_pw='yourpass',output='pk.pdf')

# ** To encrypt Pdf:**
pdftk().encrypt('file1.pdf',user_pw='pass',owner_pw='pass1',output='output.pdf')

```
---
```python
Help on class pdftk in module pdftk:

class pdftk(builtins.object)
 |  pdftk() -> None
 |  
 |  Complete wrapper for pdftk.
 |  
 |  Methods defined here:
 |  
 |  __init__(self) -> None
 |      Initialize self.  See help(type(self)) for accurate signature.
 |  
 |  add_background(self, pdf, back_pdf, input_pw=None, multi=False, user_pw=None, owner_pw=None, output=None)
 |      If the input PDF does not have a transparent background (such as a PDF created from page scans) then
 |      the resulting background won't be visible -- use the add_stamp operation instead.
 |  
 |  add_stamp(self, pdf, back_pdf, input_pw=None, multi=False, user_pw=None, owner_pw=None, output=None)
 |  
 |  burst_pdf(self, pdf, output_folder=None, input_pw=None)
 |  
 |  decrypt(self, pdf, input_pw, output=None)
 |  
 |  encrypt(self, pdf, user_pw=None, owner_pw=None, output=None)
 |  
 |  execute(self)
 |  
 |  get_page_count(self, pdf)
 |  
 |  merge(self, input_files: list, output=None, user_pw=None, owner_pw=None)
 |  
 |  rotate_pdf(self, pdf, direction='north', page_ranges='1-end', output=None, input_pw=None, user_pw=None, owner_pw=None)
 |      Each option sets the page rotation as follows (in degrees): north: 0,east: 90, south: 180, west: 270, left: -90,
 |      right: +90, down: +180. left, right, and down make relative adjustments to a page's rotation.
 |  
 |  split_pdf(self, pdf, page_or_range: list, output=None, input_pw=None)
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  __dict__
 |      dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |      list of weak references to the object (if defined)
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "myhelper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "Prince Kumar <prince736804545@gmail.com>",
    "keywords": "myhelper, yt-dlp helper, mypackage",
    "author": null,
    "author_email": "Prince Kumar <prince736804545@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/96/e5/7e356679dbe8cd2d0f818370f9a6bd37dc06ed9b0899a8e2a32f5ed16415/myhelper-0.1.6a0.tar.gz",
    "platform": null,
    "description": "# SnippetHub\nCode Snippets that I regularly use.\n\n```python\nfrom myhelper.yt_dlp_helper import Ytube\n\nurl=\"Your YouTube Url\"\n\nyt=Ytube(url)\n\nlist_of_formats=yt.formats\n\naudios=yt.audios\nvideos=yt.videos \nprogressive=yt.progressive\n\nvideo=yt.download_by_resolution(\"144p\")\naudio=yt.download_audio_by_bt_rate(128)\naudio=yt.download_audio_by_bt_rate(\"128kbps\")\naudio=yt.download_audio_by_bt_rate(\"128k\")\n```\n\n\n\n```python\nfrom pdftk import pdftk\n# **To Merge Pdf:**\npdftk().merge( input_files=['file1.pdf','file1.pdf'],output='/your path/your pdf.pdf',user_pw='PrinceIsGod',owner_pw='HeIsTheOnlyOwnerOfWorld' )\n\n# **To Burst Pdf:**\npdftk().burst_pdf('file1.pdf',output_folder='pk',input_pw='passwordofyourpdf')\n\n# ** To Remove Password:**\npdftk().decrypt('file1.pdf',input_pw='yourpass',output='pk.pdf')\n\n# ** To encrypt Pdf:**\npdftk().encrypt('file1.pdf',user_pw='pass',owner_pw='pass1',output='output.pdf')\n\n```\n---\n```python\nHelp on class pdftk in module pdftk:\n\nclass pdftk(builtins.object)\n |  pdftk() -> None\n |  \n |  Complete wrapper for pdftk.\n |  \n |  Methods defined here:\n |  \n |  __init__(self) -> None\n |      Initialize self.  See help(type(self)) for accurate signature.\n |  \n |  add_background(self, pdf, back_pdf, input_pw=None, multi=False, user_pw=None, owner_pw=None, output=None)\n |      If the input PDF does not have a transparent background (such as a PDF created from page scans) then\n |      the resulting background won't be visible -- use the add_stamp operation instead.\n |  \n |  add_stamp(self, pdf, back_pdf, input_pw=None, multi=False, user_pw=None, owner_pw=None, output=None)\n |  \n |  burst_pdf(self, pdf, output_folder=None, input_pw=None)\n |  \n |  decrypt(self, pdf, input_pw, output=None)\n |  \n |  encrypt(self, pdf, user_pw=None, owner_pw=None, output=None)\n |  \n |  execute(self)\n |  \n |  get_page_count(self, pdf)\n |  \n |  merge(self, input_files: list, output=None, user_pw=None, owner_pw=None)\n |  \n |  rotate_pdf(self, pdf, direction='north', page_ranges='1-end', output=None, input_pw=None, user_pw=None, owner_pw=None)\n |      Each option sets the page rotation as follows (in degrees): north: 0,east: 90, south: 180, west: 270, left: -90,\n |      right: +90, down: +180. left, right, and down make relative adjustments to a page's rotation.\n |  \n |  split_pdf(self, pdf, page_or_range: list, output=None, input_pw=None)\n |  \n |  ----------------------------------------------------------------------\n |  Data descriptors defined here:\n |  \n |  __dict__\n |      dictionary for instance variables (if defined)\n |  \n |  __weakref__\n |      list of weak references to the object (if defined)\n```\n\n",
    "bugtrack_url": null,
    "license": "UNLICENSE",
    "summary": "Code Snippets that I regularly use.",
    "version": "0.1.6a0",
    "project_urls": {
        "Changelog": "https://github.com/pk-628996/pk-628996/blob/master/CHANGELOG.md",
        "Documentation": "https://github.com/pk-628996/myhelper/wiki",
        "Homepage": "https://github.com/pk-628996/myhelper",
        "Issue Tracker": "https://github.com/pk-628996/myhelper/issues",
        "Source Code": "https://github.com/pk-628996/myhelper"
    },
    "split_keywords": [
        "myhelper",
        " yt-dlp helper",
        " mypackage"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4fbb1a71c1e7b8dd9aeacde9e684a176dba1fb68a791cf59284febd901fa89a9",
                "md5": "274e55009f6f9a0bb009083de98af020",
                "sha256": "829ff75796e9e9c003288ae78a326c35f4ad25ded49407e3b28dd64183d5a65d"
            },
            "downloads": -1,
            "filename": "myhelper-0.1.6a0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "274e55009f6f9a0bb009083de98af020",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 10904,
            "upload_time": "2024-06-04T06:15:37",
            "upload_time_iso_8601": "2024-06-04T06:15:37.367646Z",
            "url": "https://files.pythonhosted.org/packages/4f/bb/1a71c1e7b8dd9aeacde9e684a176dba1fb68a791cf59284febd901fa89a9/myhelper-0.1.6a0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "96e57e356679dbe8cd2d0f818370f9a6bd37dc06ed9b0899a8e2a32f5ed16415",
                "md5": "283d3426eeab11ffe8a6422a310dcfc2",
                "sha256": "490fb9af932b6aca9c6f194a252aece133b645546fe1385959f8226cc948b458"
            },
            "downloads": -1,
            "filename": "myhelper-0.1.6a0.tar.gz",
            "has_sig": false,
            "md5_digest": "283d3426eeab11ffe8a6422a310dcfc2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 10764,
            "upload_time": "2024-06-04T06:15:38",
            "upload_time_iso_8601": "2024-06-04T06:15:38.852619Z",
            "url": "https://files.pythonhosted.org/packages/96/e5/7e356679dbe8cd2d0f818370f9a6bd37dc06ed9b0899a8e2a32f5ed16415/myhelper-0.1.6a0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-04 06:15:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pk-628996",
    "github_project": "pk-628996",
    "github_not_found": true,
    "lcname": "myhelper"
}
        
Elapsed time: 0.71002s