Skip to main content

The FileIO Hyperdock

But seriously, what is a Hyperdock?

  • Hyperdock is just a fancy name for a collection of tools. Which are, just python functions returning str!
  • You can define __auth__ property for each tool to specify the authentication method, but it's not necessary for the file IO.

How to use it?

  • From your pocket instantiation, call from_dock. For example, Let's say you're using hyperpocket for langchain. You can do:
from hyperpocket.tool import from_dock
from hyperpocket_langchain import PocketLangchain
from hyperdock_fileio import initialize_dock as fileio_dock

# ...
def agent():
    # ...
    # initialize the pocket
    pocket = PocketLangchain(
        tools=[
            *from_dock(fileio_dock()),
        ]
    )

Supported Tools

Reads

  • read_text_file: Read a text file from the disk.
  • head: Read the first n lines of a text file.
  • tail: Read the last n lines of a text file.
  • read_binary_file_and_encode_base64: Read a binary file from the disk and encode it to base64.

Writes

  • write_text_file: Write a text file to the disk.
  • write_binary_file_from_base64: Write a binary file to the disk from a base64 encoded string.

Directory Operations

  • current_working_directory: Get the current working directory.
  • make_directory: Make a directory.
  • list_directory: List the contents of a directory.
  • find_file_in_directory: Given a glob pattern, find files whose name matches the pattern in a directory.
  • grep_recursive_in_directory: Given a regex pattern, search for files whose content matches the pattern in a directory.

Copy, Move, and Delete

  • copy_file: Copy a file from one location to another.
  • move_file: Move a file from one location to another.
  • delete_file: Delete a file.

Metadata

Release files for hyperdock-fileio 0.5.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyperdock-fileio 0.5.7
File Size Uploaded
hyperdock_fileio-0.5.7.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hyperdock-fileio 0.5.7
File Interpreter ABI Platform
hyperdock_fileio-0.5.7-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / hyperdock_fileio-0.5.7.tar.gz

Download URL hyperdock_fileio-0.5.7.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
af47ccc26198a4bd9875508ce1afe3ba52a175bd9b8ea7e8cbe32036a01c6449
BLAKE2b-256 checksum
How to use checksums
ebdf40c9131d44dd71b07970674ee41bdd96931116f398f2fa659a156468fb1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / hyperdock_fileio-0.5.7-py3-none-any.whl

Download URL hyperdock_fileio-0.5.7-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47ad8aaf0cbc5eda42245f38be9477b2da22569417075f529450fc9ed1caf958
BLAKE2b-256 checksum
How to use checksums
40e34e9dc8a978392e8ff3364734265f23a0a63a0db42a7556072d764e2bf39b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release history Release notifications | RSS feed

This release

0.5.7 This release

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page