Skip to main content
Glama
sms03

Resume Analysis MCP Server

by sms03
utils.cpython-313.pyc2.6 kB
� �$<h����SrSSKrSSKrSSKrSSKJrJr SSKJr SSK r \R"\ 5r S\ S\S\4SjrS\ S\4S jrg) z) Utility functions for resume processing �N)�Dict�Any)�Path�content�filename�returnc��[U5RR5nUS:Xa [U5$US;a[R S5 gUS;aUR SSS9$[R S U35 S U3$![a9n[RS [U535 S [U53sS nA$S nAff=f) z� Extract text content from a resume file Args: content (bytes): File content filename (str): Original filename Returns: str: Extracted text from the resume z.pdf)z.docz.docxz6Word document extraction requires additional librariesz&Word document extraction not supported)z.txtz.rtfzutf-8�ignore)�errorszUnsupported file format: z#Error extracting text from resume: zError extracting text: N) r�suffix�lower�extract_text_from_pdf�logger�warning�decode� Exception�error�str)rr�file_ext�es �,D:\GitHub\resume-mcp\src\resume_mcp\utils.py�extract_text_from_resumer s����H�~�$�$�*�*�,�H� 2� �v� �(��1� 1� �*� *� �N�N�S� T�;� �)� )��>�>�'�(�>�;� ;� �N�N�6�x�j�A� B�.�x�j�9� 9�� �2�� � �:�3�q�6�(�C�D�(��Q���1�1��2�s.�B�B�B�(B� C�.C�=C�Cc��[R"[R"U55nSnURHnX#R 5S-- nM U$![ a'n[RS[U535 eSnAff=f)zr Extract text from PDF content Args: content (bytes): PDF file content Returns: str: Extracted text �� z Error extracting text from PDF: N) �pypdf� PdfReader�io�BytesIO�pages� extract_textrrrr)r�reader�text�pagers rrr)sw���������G�!4�5�����L�L�D� �%�%�'�$�.� .�D�!�� �� ��� � �7��A��x�@�A� ���s�AA� B �""B�B )�__doc__�osr�logging�typingrr�pathlibrr� getLogger�__name__r�bytesrrr��r�<module>r/s[��� � ���� � � � �8� $��2�e�2�s�2�s�2�8�5��S�r.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sms03/resume-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server