You could use a foreign data wrapper (FDW) to read the file in as though it was a database table, then join it against your ID mappings table.
The file fdw looks like it would be suitable for this task.
This seemed to work:
CREATE TABLE mappings(id INT PRIMARY KEY, project_id UUID);
INSERT INTO mappings(id,project_id) VALUES
(1, '37f6e23f-ef50-4c6f-a746-cb29ae3adf52'),
(2, '8c73500f-2118-4bb7-b470-78ac1878896e'),
(3, 'c28b19f2-9ec7-4278-ae02-1dbb39d6113d');
CREATE EXTENSION file_fdw;
CREATE SERVER filedata FOREIGN DATA WRAPPER file_fdw;
CREATE FOREIGN TABLE textfile (tupleid int, id_count int)
SERVER filedata OPTIONS ( filename '/tmp/test1.txt', format 'csv' );
SELECT project_id, id_count
FROM textfile
LEFT join mappings on textfile.tupleid=mappings.id;
project_id | id_count
--------------------------------------+----------
37f6e23f-ef50-4c6f-a746-cb29ae3adf52 | 10
8c73500f-2118-4bb7-b470-78ac1878896e | 15
c28b19f2-9ec7-4278-ae02-1dbb39d6113d | 14
(3 rows)
The file-fdw seems a little picky on the file format. I found that a blank line at the end caused it to fail.